|
|
|
|
|
by yorwba
3328 days ago
|
|
About floats implementing PartialOrd and not Ord: I have not tried out Rust yet, but couldn't this be solved by wrapping the float in a single-field struct that checks for NaN on construction, implements Ord using PartialOrd and otherwise passes everything through to the ordinary float inside? If this isn't possible, I'm definitely interested in the reasons. |
|