Hacker News new | past | comments | ask | show | jobs | submit login

Except for the point about exceptions being like GOTO, I fail to see how any of this differs from the complexities of procedurally handling return code errors. Exceptions give you a better way to distinguish error handling from control flow.

I'm not even sure I understand how GOTO is unmitigated evil. Occasionally it can be the clearest way to break out of a nested loop. Doesn't the Evil GOTO song and dance come from an ancient era when it played a completely different role in languages?




Doesn't the Evil GOTO song and dance come from an ancient era

The languages may be ancient, but the era is not.

I'd be willing to bet more than half the production code running now has ancient GOTO capability and half of that is misusing it.

(Apologies to Churchill) Never was so much earned by so many maintenance programmers from the misuse of so few letters.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: