Truthiness for floats doesn't make a whole lot of sense:
void main()
{
int a;
assert(!a); // ok
float b;
assert(!b); // fails
}
Source: https://forum.dlang.org/post/vlvgvmedfprqubznvwww@forum.dlang.org
Between NaN, -0, infinity and all the other cases, it really doesn't align with the subject at all.
Good candidate for removal in an edition.
Truthiness for floats doesn't make a whole lot of sense:
Source: https://forum.dlang.org/post/vlvgvmedfprqubznvwww@forum.dlang.org
Between NaN, -0, infinity and all the other cases, it really doesn't align with the subject at all.
Good candidate for removal in an edition.