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

Marcin 'Qrczak' Kowalczyk
4 May 2001 16:05:12 GMT

Fri, 04 May 2001 12:57:29 +0200, Jerzy Karczmarczuk <> 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 can include something to be expanded inline in
other modules by making it a macro.

In Haskell module interfaces are generated by the compiler, so they
can contain unfoldings of functions worth inlining without explicit
distinguishing in the source.

 __("<  Marcin Kowalczyk *
  ^^                      SYGNATURA ZASTĘPCZA