3 ms·
>Are you kidding? Unless exceptions are documented well, which they rarely are, this is a much greater problem when using exceptions. No it's not. If you get a
by lmm 14y ago
>Are you kidding? Unless exceptions are documented well, which they rarely are, this is a much greater problem when using exceptions.
No it's not. If you get an exception you didn't prepare for, your code fails, not silently but very loudly. The argument to have is whether this is better or worse than your code silently continuing to do all the next steps even though the first one failed.
(FWIW I agree with the article, but will say it's kind of surprising to see that point of view from a python programmer given the python approach to type-checking)