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

Exceptions only propagate upwards the call stack, which can be equivalently done with return statements and some logic.


Hmm

With return you can jump only 1 level higher at once


Plus exceptions don't return to the call location - control jumps down to the catching block. Exceptions are not goto, but they are not like regular function returns either. Some weird thing in between.




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

Search: