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

They can be extremely useful in error handling. They're also great as a substitute for labeled break statements if your language doesn't support them.


What ever happened to exceptions, which were explicitly invented to handle errors


Yeah. Turns out they're no silver bullet either. These days, my approach is pragmatic: use whatever works and produces the most readable code.




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

Search: