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

> please don't use exceptions for flow control

That's kind of the problem though. Exceptions are flow control.



> Exceptions are flow control.

...for exceptional events.

That means those events that are very far from the happy path and need to be recovered by unwinding down multiple function calls until a safe point to recover gracefully is reached. These are events such as failing to allocate memory.




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

Search: