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

I don't consider error handling to be unnecessary, but it is boilerplate, no matter how or where it's implemented. That's because every non-trivial program has the potential to enter an error state. That state can either be ignored (deliberately or not, the latter case being a major source of most of the angst and misconceptions around C and C++) if the language allows it or handled in some way, and that way is by boilerplate "if/else" or "try/catch".


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

Search: