in reply to Re^5: Removing AUTOLOAD from CGI.pm
in thread Removing AUTOLOAD from CGI.pm
I wasn't criticizing CGI but trying to analyze the conditions for a new HTML DSL module. :)
I'm sure compilation speed shouldn't matter when generating closures. (I will add a benchmark later this day)
But CGI was designed for Perl 4 and I suppose Perl 4 wasn't able to closure... IIRC it didn't even have lexical variables.
Your wibble-tag is implemented as a method call, so it wouldn't depend on exporting and pre declaration anyway.
But DSLs are at the very least just syntactic sugar to avoid method calls.
> Anyway it's all gone now, or soon will be
Thanks for your work! :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Removing AUTOLOAD from CGI.pm (closure vs eval)
by LanX (Saint) on Feb 24, 2015 at 14:19 UTC |