3 ms·
As someone who really likes Go, I don't agree with you on this one. To me, it just means writing a lot of pointless boiler code and what's really worse is that
by peterashford 4y ago
As someone who really likes Go, I don't agree with you on this one. To me, it just means writing a lot of pointless boiler code and what's really worse is that the "happy path" of the code is obscured underneath a pile of pedantic make-work code
- grey-area 4y agoYes the fact the Go makes you use errors is good. The particular syntax for returning an undecorated error is needlessly verbose and takes three lines. We shouldn’t have to write this say three times in a function: if err != nil { return nil, 0, err }