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

Re: Pre-RFC: try/catch/finally and generic finally blocks

Thread Previous | Thread Next
From:
Yuki Kimoto
Date:
January 19, 2022 01:38
Subject:
Re: Pre-RFC: try/catch/finally and generic finally blocks
Message ID:
CAExogxOFSCqSL2sXqYZTDfq0k-FepdNUu+RbuBtS76sbHNAyBQ@mail.gmail.com
2022-1-19 8:54 Paul "LeoNerd" Evans <leonerd@leonerd.org.uk> wrote:

> On Thu, 16 Dec 2021 22:22:56 +0000
> "Paul \"LeoNerd\" Evans" <leonerd@leonerd.org.uk> wrote:
>
> > It also doesn't address the question of how to deparse compiled code
> > using this syntax, as it is currently implemented by the same optree
> > as a `defer` block would use, and is thus indistinguishable, in much
> > the same way that "A and B" and "B if A" would deparse the same way.
>
> This is now done and ready for review:
>
>   https://github.com/Perl/perl5/pull/19285
>
>
It seems to be good for me.

I'm reading t/op/try.t.

I have a question.

Are "next" and "redo" a compilation error in the finally block?

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