|
|
|
|
|
by za3faran
1312 days ago
|
|
It's quite error prone, most golang code is if err != nil { return nil, err } Now of course it's important to read the documentation, but a language with sum types (or exceptions) would have used a separate type to indicate an error condition plus useful information on that error. |
|