News for hackers. Stuff that matters.
Re:Of Lisp Macros and Washing Machines by wnoise on Friday May 13, 2011 @03:15PM (#2545793)
sedachv actually got my point. The standard need for macros rather than functions is to handle staged computations, distinguishing between names and objects. Lazy evaluation really does strike right at the heart of this, unlike something like "object system".
Re:Of Lisp Macros and Washing Machines by kenjackson on Friday May 13, 2011 @03:17PM (#2545806)
Closures give you this (staged computations). Macros really give syntactic abstraction. That's it. That's nice, but you get the rest via other mechanisms.
Re:Of Lisp Macros and Washing Machines by sedachv on Friday May 13, 2011 @03:30PM (#2545850)
Closures can't do partial evaluation, macros can.
Re:Of Lisp Macros and Washing Machines by kenjackson on Friday May 13, 2011 @03:53PM (#2545940)
I wasn't trying to imply you can do everything with closures. But rather you could do lazy evaluation with it (I guess staged computations could include various forms of pre-rutime evaluation).