top | item 46424651

(no title)

vhantz | 2 months ago

The two fields in the struct are expected to be false unless changed, then initialize them as such. Nothing is gained by leaving it to the compiler, and a lot is lost.

discuss

order

gwd|2 months ago

I think the point is that sometimes variables are defined by the language spec as initialized to zero, and sometimes they aren't.

Perhaps what you mean is, "Nothing is to be gained by relying on the language spec to initialize things to zero, and a lot is lost"; I'd agree with that.

vhantz|2 months ago

Please don't be pedantic. Compilers implement the standard, otherwise it's just a text document.