News for hackers. Stuff that matters.
Re:Why should I have written ZeroMQ in C, not C++ (2012) by mtrn on Wednesday May 20, 2015 @09:38PM (#9580506)
Sometimes other techniques are more useful.

- you can collect errors in a function and return them once or provide an extra method, like http://golang.org/pkg/bufio/#Scanner.Err

- you can type switch on the error; maybe there are errors that you can recover/retry locally, such as connection errors, or general io failures - so you do not need to pass back all errors to the caller

More on errors: https://blog.golang.org/errors-are-values

There are no comments on this comment yet.