Movement against float.init being nan
Walter Bright
newshound2 at digitalmars.com
Sat Aug 20 00:33:55 UTC 2022
On 8/19/2022 9:34 AM, Basile B. wrote:
> It's not a mistake, default initialization in D is not designed to be an
> initialization substitute, it's designed in a way that missing initialization is
> easily detectable but not UB.
The idea is if you're looking at code:
double d;
is `d` expected to be initialized to 0.0, or did the programmer just forget to
initialize it? D removes that ambiguity.
More information about the Digitalmars-d
mailing list