Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That might be what they are intended to be reserved for but the reality of what they get used for is much more of the "Jump Somewhere" sort.


Really? I had it drilled into me from day 3 or so, that "EXCEPTIONS ARE NOT FLOW CONTROL!"


After more than a decade of seeing exceptions in use it has become very apparent that no matter what they might have been told when they learned about exceptions most people use them for flow control. Mostly because they are a way of doing flow control.




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

Search: