3 ms·
Exceptions suck, but I really think this is going the wrong way. Exceptions usually suck because people are trying to graft some kind of complicated event hand
by DaniFong 18y ago
Exceptions suck, but I really think this is going the wrong way.
Exceptions usually suck because people are trying to graft some kind of complicated event handling system on it, to which it's not suited. Frankly, this sort of thing is better handled by co-routines. Exceptions suck because they're the often the only way to do something without more explicit control flow.
On top of this, we're supposed to be able to check everything and write error checked code, but suppressing errors can be surprisingly beneficial: observe, say, DRYing out deep checks http://code.causes.com/blog/drying-out-deep-checks http://code.causes.com/blog/drying-out-deep-checks.
One of the reasons GOTO sucked so much was because at the time it was all we had. Now it isn't. Explicit control flow is useful and important for certain tasks (like network programming).