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

Re: Try/Catch Exception Objects: Possible?

Thread Previous | Thread Next
From:
Nick Perez
Date:
July 23, 2013 10:45
Subject:
Re: Try/Catch Exception Objects: Possible?
Message ID:
20130723124540.02aa875c@workvm.localnet
I don't think that would be a good idea. TryCatch does a lot of fancy
things and requires some rather questionable modules[1]. On top of that,
it has severe performance penalties when compared to properly using
eval.

[1]: https://metacpan.org/module/TryCatch

On Tue, 23 Jul 2013 08:48:09 +0000 (UTC)
Ed Avis <eda@waniasset.com> wrote:

> Wouldn't it make the most sense to pull the existing TryCatch module
> into core, and then if wanted add extra core support needed to make
> that module work even better?
> 
> The change could be as simple as having C<use feature 'try'> load the
> TryCatch module.  In a later perl version the try and catch keywords
> could become built in, but with compatible semantics.
> 



-- 

Nicholas Perez
XMPP/Email: nick@nickandperla.net
https://metacpan.org/author/NPEREZ
http://github.com/nperez

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