Exceptions vs Error Codes
Posted Mar 30, 2012 8:34 UTC (Fri) by
ldo (subscriber, #40946)
In reply to:
Uses by Cyberax
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.
(
Log in to post comments)