in reply to Re^3: The Case for Macros in Perl
in thread The Case for Macros in Perl
the perfect way to add it to the syntax
But the issue with macros is not how to indicate the interpreter you are declaring one but how to tell the interpreter the kind of arguments you are expecting.
In Lisp (and family) you don't have this problem because the language doesn't have a grammar but on Perl, in order to parse something, you need to know where you are.
The macros in my patch only accept one kind of arguments (expressions) ruling out several interesting usages. For instance, extending the syntax as in try {...} catch {...}.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: The Case for Macros in Perl
by BrowserUk (Patriarch) on Sep 16, 2014 at 12:07 UTC |