Delayed evaluation and variable binding, yes. Most lisp macros are just sugar for closures, and when you have lightweight syntax for closures ( as in Smalltalk and, to some extent, Ruby), macros become much less important. IMHO.
when you have lightweight syntax for closures, [macros] become much less important.
Anyone who thinks that the one macro they need is one that provides a lightweight syntax for closures -- can simply define this macro and see for themselves. If a word like 'cut' is not sugary enough, CL has reader macros.
Still it's quite comforting, even if not always necessary, to program in Lisp while knowing that a macro can generate virtually any code that can be the output of a function, and not just a way to do things with the closures given to it.
View all comments
Show parent comment
2
u/avibryant Mar 14 '09
Delayed evaluation and variable binding, yes. Most lisp macros are just sugar for closures, and when you have lightweight syntax for closures ( as in Smalltalk and, to some extent, Ruby), macros become much less important. IMHO.