Movement against float.init being nan

Max Samukha maxsamukha at gmail.com
Sat Aug 20 09:53:58 UTC 2022


On Saturday, 20 August 2022 at 04:04:08 UTC, Ali Çehreli wrote:
> On 8/19/22 06:42, Hipreme wrote:
>
> > that float and double are initialized to `nan`.
>
> I think nan is the right choice. As Walter said, integrals are 
> the outliers because there is not non equivalent for them.

Arrays are outliars as well because .init is not an "invalid" 
value of them.

string s;
string s2 = s ~ "foo"; // omg, s2 now is a valid string!

And any aggregation of the outliars is also an outlier. And now 
there are too many of them to be called outliars.



More information about the Digitalmars-d mailing list