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

Re: Pre-RFC: yield true feature

Thread Previous | Thread Next
From:
Yuki Kimoto
Date:
June 21, 2022 23:19
Subject:
Re: Pre-RFC: yield true feature
Message ID:
CAExogxNCjfsbkEjr=DVydMS61yC8bnBXwYmyZr=96o31PvMBog@mail.gmail.com
Summary.

Are we going in the following direction?

If the "yield_true" feature is enabled,

  - the effect is local-scope. Generally the "yield_true" feature is used
at the top level file scope.
  - It has no effect on the return value of .pm file. Both an implicit
return value and an explicit return value specified by return statement.
  - "require" ignores the return value to determine if the module was
successfully loaded.
  - "require" returns the return value of .pm file just like the current
behavior.

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