dk has asked for the wisdom of the Perl Monks concerning the following question:
Dear all, what is the best way today to implement a macro I used to code with Devel::Declare:
x {} needs to be expanded as x $foo, sub {}. I tried Syntax::Keyword, it doesn’t allow to use x as function parameter. Function::Parameters looks rather complicated if I want to copy the macro mechanics. I wonder if there is a module that can help me?
Update: submitted a patch to Syntax::Keyword to allow expressions. Let's see if it is accurate enough ( I basically just hacked in parse_fullexpr() and that's all).
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Devel::Declare is deprecated, what’s instead? (Keyword::Simple)
by LanX (Saint) on Aug 02, 2018 at 20:45 UTC | |
by RonW (Parson) on Aug 02, 2018 at 23:10 UTC | |
by LanX (Saint) on Aug 02, 2018 at 23:42 UTC | |
by dk (Chaplain) on Aug 03, 2018 at 08:56 UTC | |
by RonW (Parson) on Aug 06, 2018 at 20:33 UTC | |
Re: Devel::Declare is deprecated, what’s instead?
by tobyink (Canon) on Aug 03, 2018 at 06:40 UTC |
Back to
Seekers of Perl Wisdom