develooper Front page | perl.perl5.porters | Postings from December 2015

Proposal: Add {-as => 'new_name'} feature to

Thread Next
Chad Granum
December 17, 2015 20:52
Proposal: Add {-as => 'new_name'} feature to
Message ID:
Several modern export tools such as Sub::Exporter and Exporter::Declare
make it possible to rename subs that you import. They tend to use a
consistent syntax:

use Foo 'export_name' => {-as => 'new_name'};

As of yet has no such capability.

1) Would anyone be opposed to having this functionality added? (and why?)
2) Does anyone oppose keeping the above syntax since it is consistent with
everything else?
3) Are there any good technical reasons not to do this?

Assuming there are no objections to the idea I would like to write a patch
(unless someone else wants to do it).


Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About