Movement against float.init being nan

Max Samukha maxsamukha at gmail.com
Sat Aug 20 03:50:06 UTC 2022


On Friday, 19 August 2022 at 18:57:25 UTC, Hipreme wrote:
>
> Well, it **is** used as initialization substitute, if wasn't 
> meant to be a substitute, not initializing a variable should be 
> a compilation error.

0, false, null array, etc. are all identities of the "primary" 
operation on the type, so people intuitively expect them to be 
the default initial value. I believe that's why most think nan is 
unnatural.



More information about the Digitalmars-d mailing list