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

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

Thread Previous | Thread Next
From:
Paul "LeoNerd" Evans
Date:
December 17, 2021 21:44
Subject:
Re: Pre-RFC: try/catch/finally and generic finally blocks
Message ID:
20211217214347.3ca51ff7@shy.leonerd.org.uk
On Fri, 17 Dec 2021 20:43:31 +0000
Oodler 577 via perl5-porters <perl5-porters@perl.org> wrote:

> but why not call it "finally"? "defer" begs the question,
> "defer until when?"; "finally" asks and answers this quite succinctly.

Because many many (many) languages already have try/catch/finally in
this same shape, and many many languages already have defer in this
same shape.

That familiarity in users' expectations is good.

-- 
Paul "LeoNerd" Evans

leonerd@leonerd.org.uk      |  https://metacpan.org/author/PEVANS
http://www.leonerd.org.uk/  |  https://www.tindie.com/stores/leonerd/

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