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

Re: Try/Catch Exception Objects: Possible?

Thread Previous | Thread Next
David Golden
July 23, 2013 21:55
Re: Try/Catch Exception Objects: Possible?
Message ID:
On Tue, Jul 23, 2013 at 3:54 PM, Paul LeoNerd <> wrote:
> Here's an amusing question: In such a scheme, would we still want 'die'
> to be the exception-throwing keyword? Why not 'throw'?

I would think we'd want to be using throw as a class method;


Within a try block, I agree that die "foo" should just throw some sort
of generic exception object.


David Golden <>
Take back your inbox! →
Twitter/IRC: @xdg

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