logoalt Hacker News

fc417fc802last Tuesday at 12:40 AM1 replyview on HN

I don't think preventing the bug is what's being objected to. Rather that the proposed solution replaces one buggy program with another. If people are inadvertently forgetting to initialize things then you should simply halt compilation when you detect that.

To be clear I think D default initializing is better than C leaving uninitialized. I just don't think it's optimal since the issue isn't one of convenience but rather bug prevention.


Replies

WalterBrightlast Tuesday at 2:21 AM

You're the first who has told me he doesn't like default initialization!

show 1 reply