2 ms·
That's not really idiomatic. You should be adding context to the error you return, or a new error.
by NateDad 12y ago
That's not really idiomatic. You should be adding context to the error you return, or a new error.
- lclarkmichalek 12y agoGiven its prevalence all across Go code, are you _sure_ it's not idiomatic? Hell, look at the presentation in the link: http://talks.golang.org/2014/readability.slide#11 http://talks.golang.org/2014/readability.slide#11. If the oracle of idioms does not write idiomatic code, then wtf is idiomatic code?
- NateDad 12y agoYou don't think people simplify some error handling to fit code on slides?