4 ms·
Technically true but most of the [admittededly modest] Go code I've seen had that error punt all over the place. I really wish they'd learned from C and either
by acdha 12y ago
Technically true but most of the [admittededly modest] Go code I've seen had that error punt all over the place. I really wish they'd learned from C and either banned assigning _ for errors or threw a compiler error if the next line wasn't a _ check.
On second thought, it'd probably avoid some nasty production failures if that behaviour was true for everything which can return an error.