|
|
|
|
|
by fragmede
1054 days ago
|
|
Whether or not you agree with it the argument for exception handling, rather than return values, is it lets the code more naturally flow for the successful case. The alternative is go's repetitive f, err := fn(...)
if err != nil {
...
}pattern. Which is better is really a matter of taste. To have error handling smattered all over the code seems more inelegant and messy to me. |
|