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

>I just don't believe that most errors can be handled locally so besides returning an error

Sure, but explicit error handling reminds you that the call may fail, and you may want to handle it in some way (or not - then you bubble it up). With exceptions, it creates the illusion of a simple linear flow.



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

Search: