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

Re: Pre-RFC: a `library` keyword

Thread Previous
From:
Ovid
Date:
April 5, 2022 07:37
Subject:
Re: Pre-RFC: a `library` keyword
Message ID:
CA+M4CHsX8pjfi3sj7=0oEoNeGxYKX9PFNRMiVPdMPDHJVtUKcQ@mail.gmail.com
On Tue, Apr 5, 2022 at 5:56 AM Yuki Kimoto <kimoto.yuki@gmail.com> wrote:


> Can I understand the yield_true feature as the following example?
>
>   {
>     use feature 'yield_true';
>     {
>       print "Hello';
>     }
>   }
>
> is same as
>
>   {
>     {
>       print "Hello';
>     }
>     1;
>   }
>

That's more or less what it does. However, I don't know how exactly it will
be implemented. Possibly it will do exactly what you've shown. Possibly it
will return a boolean. Possibly it will only do this at the end of a package
statement.

Best,
Curtis "Ovid" Poe
--
CTO, All Around the World
World-class software development and consulting
https://allaroundtheworld.fr/

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About