News for hackers. Stuff that matters.
Re:Why Lisp macros are cool, a Perl perspective (2005) by rurban on Friday April 29, 2022 @07:47AM (#31203964)
I guess he doesn't really know the parts when lisp macros are uncool. He even had the breaking example in his slide. The x++ part also breaks in lisp and only works in scheme, or when you have to introduce gensym into your macro. scheme macros are the real thing, but are not as simple and homomorph as lisp macros. they are more like constexpr matchers. if only we would have structural matching in our languages. and then do that at compile-time.
Re:Why Lisp macros are cool, a Perl perspective (2005) by dreamcompiler on Friday April 29, 2022 @08:43AM (#31204381)
Using gensyms for single evaluation is normal for experienced Common Lisp macro writers. If you find it awkward, you can always write a macro to make it look cleaner :-)
Re:Why Lisp macros are cool, a Perl perspective (2005) by rurban on Saturday April 30, 2022 @01:16PM (#31217508)
I'm fine with gensym and prefer it over scheme macros. But schemers have a lot to criticize on unhygienic macros.