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

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

Thread Previous | Thread Next
Eirik Berg Hanssen
July 18, 2020 11:40
Re: try/catch and CLEANUP/FINALLY/&c.
Message ID:
On Sat, Jul 18, 2020 at 1:24 PM Felipe Gasper <>

> > On Jul 18, 2020, at 3:00 AM, Branislav Zahradník <>
> 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.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About