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

> If I am in the business of writing robust code; then "assuming all functions can throw" means at the very least forcing every function call to be surrounded by a try/catch block?

No, absolutely not! You only care about errors where you can retry/ignore or log and terminate so you only have try/catch in those areas. So maybe one or two.



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

Search: