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

Re: Try/Catch Exception Objects: Possible?

Thread Previous | Thread Next
From:
David Golden
Date:
July 23, 2013 21:53
Subject:
Re: Try/Catch Exception Objects: Possible?
Message ID:
CAOeq1c9JePpvj4zp2mVHzoWEn2p=WyXxUqGz-OTCznYwTuT9VA@mail.gmail.com
On Tue, Jul 23, 2013 at 3:50 PM, Paul LeoNerd <leonerd@leonerd.org.uk> wrote:
> On Tue, 23 Jul 2013 15:04:49 -0400
> David Golden <xdg@xdg.me> wrote:
>
>>     catch error::io, error::network {
>
> I'd be quite keen to avoid such things.
>
> Nowwhere else in Perl do we do this sort of handling of code dispatch
> based on argument types (except for normal dynamic virtual method
> dispatch).

It was intended to be illustrative, not a proposal.  So for now, let's
set it aside as a bikeshed issue.

David


-- 
David Golden <xdg@xdg.me>
Take back your inbox! → http://www.bunchmail.com/
Twitter/IRC: @xdg

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