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

Re: Pre-RFC: yield true feature

Thread Previous | Thread Next
Yuki Kimoto
June 22, 2022 06:44
Re: Pre-RFC: yield true feature
Message ID:
2022-6-22 15:29 Dan Book <> wrote:

> On Wed, Jun 22, 2022 at 2:00 AM Martijn Lievaart <> wrote:
>> Op 22-06-2022 om 03:55 schreef Nicolas Mendoza:
>> Are there examples of people utilizing the last/return value of a
>> included file to state an error in CPAN or in the wild?
>> I use this to load specific implementations of generic subs. By do-ing a
>> specific file which returns the sub, I load a reference to the correct
>> implementation for this run.
> The behavior of "do" is not affected by what's being discussed here.
> -Dan

There seems to be a lot of misunderstanding and confusion due to the
feature name ”yeald_true” and the reference implementation "true.xs".

I think the correct feature name is a shortened name for "require ignores
the return value of the module file to check if the module was loaded

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