develooper Front page | perl.perl5.porters | Postings from July 2020

Re: try/catch and CLEANUP/FINALLY/&c.

Thread Previous | Thread Next
From:
Eirik Berg Hanssen
Date:
July 18, 2020 11:40
Subject:
Re: try/catch and CLEANUP/FINALLY/&c.
Message ID:
CAHAeAG5QTqZWTbs8U6joc7ZoFwSsKGbiMaeO94bgbAV0GskxJg@mail.gmail.com
On Sat, Jul 18, 2020 at 1:24 PM Felipe Gasper <felipe@felipegasper.com>
wrote:

> > On Jul 18, 2020, at 3:00 AM, Branislav Zahradník <happy.barney@gmail.com>
> wrote:
> > Plain cleanup is also a little bit less confusing than try/finally
> construct (there is try, where is catch?)
>
> I disagree; the more widespread “finally” pattern is IMO much less
> confusing. Reasons:
>

  Without a catch, this follows the same pattern as Perl's END blocks, no?

  Seems less confusing to this Perl programmer, at least.


Eirik

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