in reply to Re: Re: Perl etiquette - eval
in thread Perl etiquette - eval
Bad Error Handling is just that, Bad Error Handling. Regardless of language and idiom.
The idea with exceptions is that you can easily (auto-magically as my old boss used to say) allow your error to pass back up the call chain to be handled appropriately. With error return codes, you have to pass that error back up the chain yourself, which can lead to an excessive amount of unnessecary coupling.
Don't blame the tool when the tool is used badly, blame the user.
-stvn
|
|---|