Re: Macros (Was: Interesting: "Lisp as a competitive advantage")

2001-05-07 Thread Michael Sperber [Mr. Preprocessor]
> "Keith" == Keith Wansbrough <[EMAIL PROTECTED]> writes: Keith> Jerzy Karczmarczuk <[EMAIL PROTECTED]> writes: >> Macros in Scheme are used to unfold n-ary control structures such as COND >> into a hierarchy of IFs, etc. Nothing (in principle) to do with laziness >> or HO functions. Keith>

Re: Macros (Was: Interesting: "Lisp as a competitive advantage")

2001-05-07 Thread Jerzy Karczmarczuk
Keith Wansbrough quotes : > > Jerzy Karczmarczuk <[EMAIL PROTECTED]> writes: > > > Macros in Scheme are used to unfold n-ary control structures such as COND > > into a hierarchy of IFs, etc. Nothing (in principle) to do with laziness > > or HO functions. > > Isn't this exactly the reason that m

Re: Macros (Was: Interesting: "Lisp as a competitive advantage")

2001-05-05 Thread Fergus Henderson
On 04-May-2001, Marcin 'Qrczak' Kowalczyk <[EMAIL PROTECTED]> wrote: > Jerzy Karczmarczuk <[EMAIL PROTECTED]> pisze: > > > In Clean there are macros. They are rather infrequently used... > > I think they roughly correspond to inline functions in Haskell. > > They are separate in Clean because m

Re: Macros (Was: Interesting: "Lisp as a competitive advantage")

2001-05-04 Thread Marcin 'Qrczak' Kowalczyk
Fri, 04 May 2001 12:57:29 +0200, Jerzy Karczmarczuk <[EMAIL PROTECTED]> pisze: > In Clean there are macros. They are rather infrequently used... I think they roughly correspond to inline functions in Haskell. They are separate in Clean because module interfaces are written by hand, so the user

Re: Macros (Was: Interesting: "Lisp as a competitive advantage")

2001-05-04 Thread Keith Wansbrough
Jerzy Karczmarczuk <[EMAIL PROTECTED]> writes: > Macros in Scheme are used to unfold n-ary control structures such as COND > into a hierarchy of IFs, etc. Nothing (in principle) to do with laziness > or HO functions. Isn't this exactly the reason that macros are less necessary in lazy languages?

Macros (Was: Interesting: "Lisp as a competitive advantage")

2001-05-04 Thread Jerzy Karczmarczuk
Discussion about macros, Lisp, laziness etc. Too many people to cite. Alan Bawden uses macros to write assertions, and Dylan Thurston comments: ... > > (assert (< x 3)) > > > > Which macro expands into: > > > > (if (not (< x 3)) > > (assertion-failed '(< x 3))) > > > > Where `assertion