4 ms·
Yes 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 sho
by grey-area 4y ago
Yes 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
}