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

Re: Thoughts in the direction of a core try/catch syntax

Thread Previous | Thread Next
From:
Leon Timmermans
Date:
March 7, 2020 17:48
Subject:
Re: Thoughts in the direction of a core try/catch syntax
Message ID:
CAHhgV8jbiCuY4cwgcWqFnajUT3TmNHCKF0n-DJEUXwmf2188wg@mail.gmail.com
On Fri, Mar 6, 2020 at 1:30 AM <hv@crypt.org> wrote:
> The list-returning capability does not sound problematic from a semantic
> point of view. The type-dispatch implicit in efficient propagation of
> unhandled exceptions sounds a lot harder, so if at all possible I'd
> suggest again experimenting with that in CPAN - adding (temporary,
> experimental) hooks as necessary to permit it - rather than trying
> to introduce it in core ab initio.

Ideally, the error dispatch would be able to re-use a dumber
smartmatch like the one Paul other topic.
This rather sounds like a killing two birds with one stone kind of situation.

Leon

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