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

Re: Try/Catch Exception Objects: Possible?

Thread Previous | Thread Next
From:
David E. Wheeler
Date:
July 23, 2013 16:35
Subject:
Re: Try/Catch Exception Objects: Possible?
Message ID:
0F5FB21D-4656-4943-A5BF-9A780B292BA4@justatheory.com
On Jul 23, 2013, at 6:29 PM, Ricardo Signes <perl.p5p@rjbs.manxome.org> wrote:

> Before we think about any of the fairly complicated systems suggested for
> backcompat, we should find out how much breakage we'd cause by doing the
> simplest thing that could possibly work.
> 
> We should apply a patch that does nothing but make internal errors become
> objects with overloaded stringification.  Then we can see how much of the core
> tests, and of the CPAN, breaks.  We may be surprised by the results.

+1 Yes, agree completely. And I think that adding the try/catch syntax is orthogonal to that, and can be done independently. Only if we later decide we need to do something fancy with die and the lexical $_ in CATCH will the come together, if at all.

Best,

David


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