3 ms·
> I'm not a fan of such a policy. That usually leads to people zero-initializing everything. For this bug, this would have been correct, but sometimes, there is
by lmm 5y ago
> I'm not a fan of such a policy. That usually leads to people zero-initializing everything. For this bug, this would have been correct, but sometimes, there is no good "initial" value, and zero is just another random value like all the 2^32-1 others.
So use a language that has an option type, we've only had them for what, 50 years now.
- dundarious 5y agoI think https://news.ycombinator.com/item?id=30588362 https://news.ycombinator.com/item?id=30588362 has shown that this wouldn't solve anything for this particular case.