Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Do you use an exception class in your Perl programs? Why or why not?

by TGI (Vicar)
on Mar 15, 2010 at 04:59 UTC ( #828632=note: print w/ replies, xml ) Need Help??


in reply to Re: Do you use an exception class in your Perl programs? Why or why not?
in thread Do you use an exception class in your Perl programs? Why or why not?

Parsing strings is fragile and error prone.

Imagine if we had to pass our subroutine arguments and return values as strings.

Without exception objects, that it the situation with exceptions. It really bothers me that I have to parse a string to identify an exception type. Especially since the raw data that produced the string should be available.

This is the fundamental reason I've been obsessing about exceptions lately.


TGI says moo


Comment on Re^2: Do you use an exception class in your Perl programs? Why or why not?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://828632]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (11)
As of 2014-12-21 16:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (106 votes), past polls