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

Re: Pre-RFC: “helpcodes” feature

Thread Previous | Thread Next
Felipe Gasper
June 8, 2022 12:16
Re: Pre-RFC: “helpcodes” feature
Message ID:

> On Jun 7, 2022, at 13:38, Dan Book <> wrote:
> On Tue, Jun 7, 2022 at 12:56 PM Felipe Gasper <> wrote:
> The idea is simple: apply the familiar pattern of POSIX error names (ENOENT, EPERM, etc.) to Perl. These will be easily searchable in search engines, and we can list them in something like perlhelpcodes.pod.
> Thoughts?
> I think it's useful but unfortunately it cannot be protected by a feature flag, since the error messages will by their nature escape that scope and cause breakage.

It seems unlikely that a CPAN/DarkPAN module would enable helpcodes for the same reason as pertains with signatures: the “new hotness” restricts the module’s compatibility without providing much advantage for the module author/maintainer.

I would think helpcodes mostly useful in “end applications”, where the author can control whether the feature is used or not.


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