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

Re: RFC 0004 - defer {} syntax

Thread Previous | Thread Next
From:
Arne Johannessen
Date:
June 17, 2021 11:24
Subject:
Re: RFC 0004 - defer {} syntax
Message ID:
04D79C3D-63AA-4E55-A025-EBA94AE8F5E6@thaw.de
Ben Bullock <benkasminbullock@gmail.com> wrote:
> 
> I can see an advantage from being able to run defers conditionally.

consider:

    defer if EXPR { ... }
vs:
    defer { ... if EXPR }

The second form is already allowed by the syntax proposed in this RFC, so the benefit of also allowing the first form seems to be little.


-- 
Arne Johannessen
<https://arne.johannessen.de/>




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