This is a post about performance. Most of the time when worrying about the performance of a piece of code the overwhelming advice should be (with apologies to Brendan Gregg) don’t worry about it, yet. However there is one area where I counsel developers to think about the performance implications of a design, and that is API design.| Dave Cheney
In my previous post, I doubled down on my claim that Go’s error handling strategy is, on balance, the best.| Dave Cheney
The common contract for functions which return a value of the interface type error, is the caller should not presume anything about the state of the other values returned from that call without first checking the error.| Dave Cheney
A few months ago I gave a presentation on my philosophy for error handling. In the talk I introduced a small errors package designed to support the ideas presented in the talk.| Dave Cheney
This post is an extract from my presentation at the recent GoCon spring conference in Tokyo, Japan.| Dave Cheney