News for hackers. Stuff that matters.
Re:Ask HN: Are macros still an enormous edge in the power of... by mahmud on Saturday June 06, 2009 @07:28PM (#645263)
Most people think macros are for "compacting" code, or factoring out common parts.

Macros are for introducing new control primitives, syntax and evaluation models into the language.

Re:Ask HN: Are macros still an enormous edge in the power of... by gruseom on Saturday June 06, 2009 @08:16PM (#645320)
It's both, no? You can always write macroexpanded code by hand, only with much repetition, so in that sense macros are always compacting.

Except, I suppose, for perverse macros which expand into shorter code :)

Re:Ask HN: Are macros still an enormous edge in the power of... by mahmud on Saturday June 06, 2009 @09:04PM (#645372)
It's for both, but utility functions also serve the same purpose (which is why you see people claiming they could do whatever Lisp macros do with function/methods/classes/monads/templates/makefiles, etc.) :-P