3 ms·
> What I disagree is the "zeroing out" part. I don't want > 0 or empty string to be more "special" than ordinary > values. Sentinel zero values have
by sagichmal 11y ago
> What I disagree is the "zeroing out" part. I don't want
> 0 or empty string to be more "special" than ordinary
> values.
Sentinel zero values have been part of Go since day 1, and leveraged to provide some very nice semantics. See e.g. bytes.Buffer. It's a fundamental and useful part of the language.