in reply to Advantages of OO-ish exception handling..

If you are a pioneer for Perl6 or P5EE, then i can see the benefits of encapsulating error conditions into those glorified goto's known as exceptions. But otherwise, this just isn't needed in most day to day Perl scripts.

I have no reservations about using another language that actually has those keywords, like Python, Ruby (my new favorite leisure language) or even, ick, Java. And if Perl6 includes 'real' exceptions, then I will use them, but I try to stay true to the spirit of the language, and try-catch in Perl5 is about as useful to me as a switch block. But don't let me stop your quest, it is a noble one.

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
F--F--F--F--F--F--F--F--
(the triplet paradiddle)
  • Comment on (jeffa) Re: Advantages of OO-ish exception handling..