4 ms·
> 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 e
by AlexCoventry 5y ago
> 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.
- closeparen 5y agoI 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.
- AlexCoventry 5y agoExplicit error handling can improve reliability in some circumstances, because it highlights corner cases which are easy to ignore otherwise.