3 ms·
To me this feels quite pedantic. Being able to do less than on NaNs and just having it do something vaguely sensible (as in your linked solution) is a far more
by IshKebab 8y ago
To me this feels quite pedantic. Being able to do less than on NaNs and just having it do something vaguely sensible (as in your linked solution) is a far more common requirement than need to handle NaNs specially.
You could even say the reason NaN exists is so that you don't have to check for NaN constantly. Rust is being technically correct but practically really annoying, for basically no benefit.
- steveklabnik 8y agoFor what it's worth, many in the Rust community agree with you. Many people consider this a mistake, in hindsight, though not everyone.