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

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

Thread Previous | Thread Next
David Golden
December 19, 2015 03:49
Re: Proposal: Add {-as => 'new_name'} feature to
Message ID:
On Fri, Dec 18, 2015 at 10:29 PM, Kent Fredric <>

> I was under the impression that as-is, in case 3b, you're not "stuck",
> because the feature is available whether or not that module does
> anything.

I said that's conceptually equivalent to monkey patching.  By depending on
an old (possibly unconstrainted) version of Exporter, that module only
promises to respect string values passed to import.  If you upgrade
Exporter in a way that allows something else, you've changed it's contract
with you.  If the module ever wraps import() for any reason and your code
breaks, it's your fault.

If the argument is "I plan to use 5.24, so I want this whenever I can have
it, and I'll work around breakage if/when they happen" that's quite
different than the case I was describing and someone ought to go through
pros/cons of that.


David Golden <> Twitter/IRC/Github: @xdg

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