develooper Front page | perl.perl5.porters | Postings from February 2022

Re: Pre-RFC: a `module` keyword

Thread Previous | Thread Next
Neil Bowers
February 11, 2022 09:52
Re: Pre-RFC: a `module` keyword
Message ID:
Hi Curtis,

We think there's definitely scope for improving Perl's support for creating modules of function libraries, and the import mechanism.

Some of what you proposed is effectively supported already with the `package Foo::Bar 0.001 { ... }` syntax.

There are a lot of modules on CPAN that solve different subsets of "the problem" (for example there are modules that use attributes for tagging functions for export), and your proposal feels like it's adding to that, rather than proposing a unified step forward.

So in its current form, we've marked this as rejected, but we think this is an area that's ripe for more thought. Part of that should include a review of CPAN and the problems with the current options. Finally, we agreed that in whatever form, we're not likely to ever accept a `module` keyword to mean "a collection of functions", given the established definition of "module".


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