News for hackers. Stuff that matters.
Re:Down the Golang Nil Rabbit Hole by jrockway on Tuesday March 30, 2021 @05:07AM (#26632498)
I recommend writing `if _, err := ...; err != nil { ... }` where ever possible, to avoid the case above where you overwrite the existing error.

It is not possible to always do this; `if val, err := ...; err != nil { } else { use(val) }` is a Bit Much.

There are no comments on this comment yet.