12 ms·
That, in fact, is the normal case which is why people are surprised by typed nils. For example: func returnsNil() error { return nil } x := returnsNi
by TheDong 9y ago
That, in fact, is the normal case which is why people are surprised by typed nils.
For example:
func returnsNil() error { return nil }
x := returnsNil()
// x is of type nil and value nil.