|
|
|
good chemistry is complicated, and a little bit messy -LW |
|
| PerlMonks |
Re^12: Learning how to use the Error module by exampleby adrianh (Chancellor) |
| on Jul 30, 2003 at 15:49 UTC ( #279219=note: print w/ replies, xml ) | Need Help?? |
|
The only thing that's "wrong" with return is that you have more than 2 return codes. But why are multiple return statements "worse" than multiple throw statements? Why replace the boolean functionality found everywhere else in Perl with your own exception based mechanism? Why move mainline code into catch blocks? I think we're just going to have to agree to disagree over this one! If I was a maintenance developer faced with the code you gave, or:
I know which I'd prefer :-)
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||