|XP is just a number|
Re^4: Amicable divorce (Macros)by LanX (Sage)
|on Jul 17, 2020 at 04:20 UTC||Need Help??|
> Arguably, Common Lisp macros are a preprocessor, itself written in Lisp; consider the MACROEXPAND and MACROEXPAND-1 builtins from this perspective
Nope. Syntactic macros are lightyears ahead of preprocessor stuff.
Source filters are fancy preprocessors and failed to deliver because they require an extra parsing phase and understanding of the grammar at a distance.
Lisp macros look like functions but expand in the very same parsing phase, no confusion here. Eg a macro in a comment will never be expandend!
And they get their arguments as code before it's evaluated and can reconfigure it. Eg a deeply nested peace of syntax.
That's incredibly powerful.
Switch.pm (and so many things more) as syntactic macro would actually really work.