defaulting floats to NaN seemed a little weird, so I checked what D defaults other data types.<p><a href="https:&#x2F;&#x2F;dlang.org&#x2F;spec&#x2F;type.html" rel="nofollow">https:&#x2F;&#x2F;dlang.org&#x2F;spec&#x2F;type.html</a><p>Well, it good weirder. int types are 0s except char types which are 0xFF, 0xFFFF (-1). Except dchar (32bit uint) which is 0x0000FFFF. And all floating types are NaN. Why the inconsistency?<p>Is there a reason for this? If you are gonna initialize your locals why not 0 for all? It would be more expected, consistent and probably efficient.