Re:How Lisp macros differ from static code-generation and me...
by vegashacker on Wednesday January 26, 2011 @12:50PM
(#2144107)
Yeah, I think that's a fair way to start thinking about them. But Lisp macros, to extend your example, are more like if you could generate the SQL using SQL. Which sounds like a totally horrible thing actually. :) But with Lisp it makes much more sense because lisp programs are lists. If SQL programs were tables, then it'd be a better fit...
[ Parent
| on HN ]
Re:How Lisp macros differ from static code-generation and me...
by gnosis on Wednesday January 26, 2011 @01:01PM
(#2144158)
You'd have to stretch the analogy to not only generating SQL with SQL, but extending SQL with SQL, to create constructs that weren't even possible to write in SQL before you extended it.