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

Re: Proposal: Add {-as => 'new_name'} feature to Exporter.pm

Thread Previous | Thread Next
From:
Ricardo Signes
Date:
December 22, 2015 12:54
Subject:
Re: Proposal: Add {-as => 'new_name'} feature to Exporter.pm
Message ID:
20151222125431.GA25387@cancer.codesimply.com
* Abigail <abigail@abigail.be> [2015-12-22T03:37:26]
> Although I find "{-as => 'newname'}" a bit clunky -- a whole hashref
> for a single feature, the openness of this structure means there's room
> for other enhancements in the future: no need to invent yet another
> syntax; one can just add another key/value pair in the hashref.

I meant to mention the same thing, and I agree!  I'm not sure what we'd ever
want to put into Exporter along side that, but I'd rather never need it than
find out we want it later when we've committed to something that can't be
extended.

-- 
rjbs

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About