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

Re: Try/Catch Exception Objects: Possible?

Thread Previous | Thread Next
David E. Wheeler
July 25, 2013 10:31
Re: Try/Catch Exception Objects: Possible?
Message ID:
On Jul 23, 2013, at 12:26 AM, Kent Fredric <> wrote:

> This criteria list is what gives me the impression exceptions need
> their own reftype, and in that form,  die is a special construct (
> like bless, and qr/ / ) that creates and throws an exception
> reference.

I would prefer, like RJBS, that we start with the simplest possible change and see what happens, then iterate. It might come to this, but I would rather not make it so special-case up-front.

> Even if my exact ideas are awful, or yours are, this is a much needed
> discussion imo. Though, I just fear if we try arguing they should be
> objects in the same sense as most present objects ( ie: with a
> matching package and a load of boring messy pure-perl plumbing ),
> we'll get side tracked about bikeshedding about how it would be really
> nice to have something Moo/Moose like in core.

Then why bring it up! :-P

> Besides, I get the impression the guts of doing anything serious with
> Exceptions may even be easier to approach from the Perl & C side of
> the equation than it is to do it entirely in pureperl.

Yes, I think it needs better support at the language level.



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