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

Re: Pre-RFC: yield true feature

Thread Previous | Thread Next
From:
Darren Duncan
Date:
June 22, 2022 07:12
Subject:
Re: Pre-RFC: yield true feature
Message ID:
bd403ef8-2e9f-30c8-9f0a-eae889f0534e@darrenduncan.net
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, and the feature would be good to be renamed to 
something that more accurately describes what it does.  Or if that isn't 
renamed, at least the documentation will have to be very clear to explain the 
real behavior and not what other behaviors the name would seem to imply. -- 
Darren Duncan

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