develooper Front page | perl.perl5.porters | Postings from January 2016

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

Thread Previous | Thread Next
Kent Fredric
January 25, 2016 11:46
Re: Proposal: Add {-as => 'new_name'} feature to
Message ID:
On 26 January 2016 at 00:35, Aristotle Pagaltzis <> wrote:
> There is indeed a failure to separate concerns in Perl’s standard way of
> doing things, but going from “every module picks some exporter and its
> user gets no choice” to “every module cooperates with Importer and its
> user gets no choice” isn’t particularly much of a gain.

It does however mean that unlike, where every additional
feature in the ->import() syntax affects every Exporter based module,
at a spooky distance, is only changing its own interface,
not the interface of every Exporter based module.

Foo -> Importer -> Thing -> Exporter

Here, "Importer" can by rights change its own interface without
changing the interface of "Thing"


Foo ->  Thing -> Exporter

Exporter changing anything changes the interface of "Thing" without
the consent of "Thing"



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