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

Re: Pre-RFC: yield true feature

Thread Previous | Thread Next
From:
Paul "LeoNerd" Evans
Date:
June 23, 2022 11:21
Subject:
Re: Pre-RFC: yield true feature
Message ID:
20220623122046.4fee8a2f@shy.leonerd.org.uk
On Wed, 22 Jun 2022 00:12:30 -0700
Darren Duncan <darren@darrenduncan.net> wrote:

> On 2022-06-21 11:43 p.m., Yuki Kimoto wrote:
> > 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 successfully".  
> 
> I will repeat (reworded) something I said before, which is that I
> feel this feature should be renamed, as yield_true is clearly and
> repeatedly giving people the wrong idea for what it does

Back in the very beginning I first mentioned the name "yield_true", and
I said:

> On those latter two points: I could imagine that use v7 enables some
> features to get those. Lets call them for sake of argument
> 
>     use feature qw( export_attr yield_true )

-- https://github.com/Perl/RFCs/pull/11#issuecomment-1022388554

I probably should have made clearer, that was just a 5-second thought
of a name. I don't think it's a very good name, I just made it up for
the comment to close that PR.

It is verymuch still in need of a better name :)

-- 
Paul "LeoNerd" Evans

leonerd@leonerd.org.uk      |  https://metacpan.org/author/PEVANS
http://www.leonerd.org.uk/  |  https://www.tindie.com/stores/leonerd/

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