4 ms·
> Exceptions are basically 'goto' with a pretty wrapper. Famously, "for loops" are basically 'goto' with a pretty wrapper.
by gohrt 12y ago
> Exceptions are basically 'goto' with a pretty wrapper.
Famously, "for loops" are basically 'goto' with a pretty wrapper.
- cbd1984 12y ago> Famously, "for loops" are basically 'goto' with a pretty wrapper. Trivial response: for loops don't potentially involve jumping into code in a completely different file, which could have been written by someone else. More substantive response: for loops don't imply a specific philosophy about error handling. That said, I do like exceptions, as I think they encourage a healthy ignorance in most code, as long as the code which can handle the exception does handle it. But that's just a "don't write bad code" admonition, and you can abuse any philosophy to write bad code.