in reply to Near-free function currying in Perl
I assume you'll be uploading this to CPAN. Where's the test suite? Could you accomodate using some other namespace other than '_c'? I use that when referring to a column attribute when using Alzabo. I'd opt to be verbose and just use the '_curry' namespace instead.
# the first argument to import may be some configuration use AutoCurry ( { namespace => '_curry' }, LIST );
Also note that your INIT block won't run when your module is loaded during runtime and from common mod_perl configurations. You'll need to expose that block in a named subroutine to give those other people a chance to run that code. You could also just run that from your import() function so your users won't need to care about that detail.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Near-free function currying in Perl
by tmoertel (Chaplain) on Nov 17, 2004 at 04:15 UTC | |
Re^2: Near-free function currying in Perl
by tmoertel (Chaplain) on Mar 11, 2005 at 03:17 UTC | |
by diotalevi (Canon) on Mar 20, 2005 at 22:56 UTC | |
by tmoertel (Chaplain) on Mar 21, 2005 at 19:04 UTC | |
by diotalevi (Canon) on Mar 21, 2005 at 19:10 UTC | |
by tmoertel (Chaplain) on Mar 26, 2005 at 06:38 UTC |