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

Marcin 'Qrczak' Kowalczyk qrczak@knm.org.pl
4 May 2001 16:05:12 GMT


Fri, 04 May 2001 12:57:29 +0200, Jerzy Karczmarczuk <karczma@info.unicaen.fr> 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 * qrczak@knm.org.pl http://qrczak.ids.net.pl/
 \__/
  ^^                      SYGNATURA ZASTĘPCZA
QRCZAK