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

Re: Pre-RFC: “helpcodes” feature

Thread Previous | Thread Next
From:
Felipe Gasper
Date:
June 8, 2022 12:16
Subject:
Re: Pre-RFC: “helpcodes” feature
Message ID:
5E14B115-29DE-4B39-85C2-2AC670EEFCA1@felipegasper.com

> On Jun 7, 2022, at 13:38, Dan Book <grinnz@gmail.com> wrote:
> 
> On Tue, Jun 7, 2022 at 12:56 PM Felipe Gasper <felipe@felipegasper.com> 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.

-FG

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