in reply to Re^3: Amicable divorce
in thread Amicable divorce
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.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Amicable divorce
by jcb (Parson) on Jul 17, 2020 at 04:28 UTC | |
by salva (Canon) on Jul 17, 2020 at 08:13 UTC | |
by LanX (Saint) on Jul 18, 2020 at 14:46 UTC | |
by LanX (Saint) on Jul 17, 2020 at 04:52 UTC |