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

Be consistent. Be consistent with what is standard/normal/customary for the language. If there is not one answer to that, at least be consistent in a codebase. Don't use error codes in some places and exceptions in others (and Maybe/Option types somewhere else). Pick one approach and stick with it, because if you don't, you'll get error-handling bugs at the boundaries where you switch from one approach to the other.


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

Search: