Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][tlug] STM, the Silver Bullet, and the Foot
- Date: Wed, 26 Nov 2008 01:18:28 +0900
- From: "Stephen J. Turnbull" <stephen@example.com>
- Subject: [tlug] STM, the Silver Bullet, and the Foot
- References: <4913AFC7.3080304@articlass.org> <4913B730.6030104@bebear.net> <491B961D.7030709@articlass.org> <20081113113655.GC2041@inferi.kami.home> <491C527B.3070001@articlass.org> <491CD2B8.8020605@bebear.net> <491CDADA.5040806@articlass.org> <491CDC68.3070209@bebear.net> <30ce84360811131806w295730ajacba6f96fe02f8ee@mail.gmail.com> <87vdunnm9f.fsf@xemacs.org> <20081125130423.GF5739@smtp.office.cynic.net>
Curt Sampson writes: > This differs significantly from modern LISP-like languages where when > you say '(foo (a) (b))', and 'foo' happens to be 'and', it's specified > that '(a)' must be evaluated before '(b)', and '(b)' must not evaluated > if '(a)' evaluates to false. (Is 'foo' a macro with special evaluation > order, as above? 'foo' is whatever it is. 'and's behavior means that it is a "special form", neither a macro nor a function (it can be implemented as a macro, since macros evaluate none of their arguments so that its expansion can do so where necessary). ;; Emacs Lisp idiom (defmacro and (&rest args) ;; catch returns the value associated with the throw, if it occurs ;; otherwise it returns the value of the last form executed within it '(catch 'return (while args ;; don't eval an arg until it is used (when (null (eval (pop args))) (throw 'return nil))) t)) > The advantage lies in Haskell, not in STM. I'll buy that. Caveat "or any pure functional language", of course. Haskell just happens to be the (deservedly) popular one at the moment.
- Follow-Ups:
- Re: [tlug] STM, the Silver Bullet, and the Foot
- From: Curt Sampson
- References:
- [tlug] Just curious... how much impact does a kernel update make?
- From: Dave M G
- Re: [tlug] Just curious... how much impact does a kernel update make?
- From: Edward Middleton
- Re: [tlug] Just curious... how much impact does a kernel update make?
- From: Dave M G
- Re: [tlug] Just curious... how much impact does a kernel update make?
- From: Mattia Dongili
- Re: [tlug] Just curious... how much impact does a kernel update make?
- From: Dave M G
- Re: [tlug] Just curious... how much impact does a kernel update make?
- From: Edward Middleton
- Re: [tlug] Just curious... how much impact does a kernel update make?
- From: Dave M G
- Re: [tlug] Just curious... how much impact does a kernel update make?
- From: Edward Middleton
- Re: [tlug] Just curious... how much impact does a kernel update make?
- From: Ian Wells
- Re: [tlug] Just curious... how much impact does a kernel update make?
- From: Stephen J. Turnbull
- [tlug] STM, the Silver Bullet, and the Foot
- From: Curt Sampson
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] SSH Issues
- Next by Date: [tlug] Fibonacci and Netflix
- Previous by thread: [tlug] STM, the Silver Bullet, and the Foot
- Next by thread: Re: [tlug] STM, the Silver Bullet, and the Foot
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links