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

Re: Pre-RFC: a `module` keyword

Thread Previous | Thread Next
From:
Dan Book
Date:
January 25, 2022 15:33
Subject:
Re: Pre-RFC: a `module` keyword
Message ID:
CABMkAVUV-jScA+=atSA-tey4McSf5LJskt-V1Vn51aLXZE7PhQ@mail.gmail.com
On Tue, Jan 25, 2022 at 5:42 AM Neil Bowers <neilb@neilb.org> wrote:

> I like the idea of syntactic support for function libraries, but I don’t
> like the proposed use of the word "module".
>
> We have existing, well-established, terminology where a *module* is a
> package in a .pm file of the corresponding name, and a module can either be
> a class *or* a function library (or the love child of both).
>
> I don’t have a great alternative to suggest ("sublibrary", "exporter",
> "library", … ?)
>

Each of these features can simply be implemented in the existing syntax and
no new keyword is needed.

-Dan

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