[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Python or Perl for a Debian maintainance project?

On Sat, Feb 21, 2004 at 08:43:47AM +0000, Andrew Suffield wrote:

> It is no more correct to forget to handle the error with exceptions than
> it is to forget to handle the error with regular return values.

It's equally incorrect, but exceptions make it harder to forget.  Perl code
which forgets to check return values fails in odd ways or produces warnings
from -w in some place in the code other than where the bug is (or perhaps
works for some cases and not others), while an unhandled exception aborts
the program and pinpoints the location of the bug.

 - mdz

Reply to: