Hacker News new | past | comments | ask | show | jobs | submit login

> In Go you have to do this or your line/branch coverage will be abysmal.

If reliability is critical, having explicit error handling and coverage tools which expose error conditions which haven't been tested is very helpful.




I make a sequence of calls during the service of a request. If any one of them fails I want to stop and return the error to the caller.

Having to check this in the particular case of every call at every later underlying every handler, does not make my software more reliable in than when it is simply guaranteed in general.


Explicit error handling can improve reliability in some circumstances, because it highlights corner cases which are easy to ignore otherwise.




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

Search: