Comparing Error packages

Nate Finch nate.finch at canonical.com
Mon Feb 10 12:16:41 UTC 2014


I propose we make a small sample program that exercises error returns in
several typical ways, including the non-trivial scenarios, and then make
one implementation for each competing error package, so we can see how they
work out in real code.

The code can be very terse, since there's no need for real logic other than
control flow and error handling, but it can involve things like passing an
error back through several levels, sending an error over a channel from one
goroutine to another, masking errors we don't want exposed, handling third
party errors, and using internal custom error types.

I think this is the best way to compare the error packages, since we'll see
first hand how they would look being used in real code.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju-dev/attachments/20140210/05b4c05d/attachment.html>


More information about the Juju-dev mailing list