|
|
|
|
|
by tsimionescu
1756 days ago
|
|
Libraries can almost never handle errors - they can only signal them. And Go libraries are particularly bad at this, because they almost always return error strings, instead of meaningful error types, which means you can't easily handle a subset of errors. Even if you did, Go's errors suffer from the same problems as exceptions in many languages: there is no way to document what errors your function can actually return, just that it returns some error. What language are you thinking of when saying Go libraries do better at error handling? |
|