Re:Go 1.1 beta 1 Released
by carbocation on Thursday April 04, 2013 @09:36AM
(#5492525)
Methods' declarations indicate which ones return an error value. E.g.:
func Demo (s string) (string, error){...}
When called, that is guaranteed to return a string and an error value (OR nil).
Your explanation does seem to make the case for this type of error seem somewhat sensible, maybe I'll give Go another try. Are methods which return errors and the types of errors returned clearly documented/visible?