Exceptions vs Error Codes
Posted Mar 30, 2012 8:34 UTC (Fri) by ldo
In reply to: Uses
Parent article: Go version 1 released
Returning error result more than one level is an anti-pattern. It means that you really need exceptions in this case, since you're starting to emulate them.
Or maybe exceptions are the anti-pattern, and returning error codes is a more structured—i.e. refactorable—way of coping with such conditions.
to post comments)