r/programming • • Mar 14 '09

Hello Haskell, Goodbye Lisp

http://www.newartisans.com/2009/03/hello-haskell-goodbye-lisp.html
48 Upvotes

80 comments sorted by

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.

5

u/ayrnieu Mar 14 '09

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.

2

u/blue_entropy Mar 15 '09 edited Mar 15 '09

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.