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

Re: Try/Catch Exception Objects: Possible?

Thread Previous | Thread Next
David E. Wheeler
July 23, 2013 16:35
Re: Try/Catch Exception Objects: Possible?
Message ID:
On Jul 23, 2013, at 6:29 PM, Ricardo Signes <> 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.



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