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

It's amusing but I never thought of exceptions as gotos. But that's what they in essence.


How are exceptions like gotos? I don't see any similarity. If by "essence" you mean they jump to a specific line of code, then lots of things can do that - switch/case , if/else, do/while, function calls/returns, etc.




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

Search: