Re:Effective Go
by closeparen on Sunday October 03, 2021 @02:05PM
(#28739151)
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.
Re:Effective Go
by AlexCoventry on Sunday October 03, 2021 @05:05PM
(#28740498)
Explicit error handling can improve reliability in some circumstances, because it highlights corner cases which are easy to ignore otherwise.
If reliability is critical, having explicit error handling and coverage tools which expose error conditions which haven't been tested is very helpful.