Explanation of macros; Haskell macros

Peter Seibel peter at javamonkey.com
Thu Oct 30 13:41:06 EST 2003


Joachim Durchholz <joachim.durchholz at web.de> writes:

> Peter Seibel wrote:
> > Joachim Durchholz <joachim.durchholz at web.de> writes:
> >
> >>Efficiency issues aside: how are macros more intuitive than quoting?
> > Or you could do this:
> >   (when (> x y) #'(lambda () (print x)))
> > which could work but seems a bit convoluted (i.e. unintuitive)
> > compared to the macro version.
> 
> Um, right, but that's just a question of having the right syntactic sugar.

Uh right, that's what macros are for, providing the syntactic sugar.

-Peter

-- 
Peter Seibel                                      peter at javamonkey.com

         Lisp is the red pill. -- John Fraser, comp.lang.lisp




More information about the Python-list mailing list