Hacker News new | ask | show | jobs
by arcticbull 2239 days ago
I do believe that's quite intentional, due to the inexactness of floating-point values, it's not "right" to do that. There should be a `partial_min` function though, IMO, which has weaker guarantees.
1 comments

It's absolutely intentional, and it's got being technically correct on its side, it's just frustrating.
Not really. That Rust forced total order and partial order into a sub-typing relation is a completely unnecessary, self-inflicted wound.
Many folks do consider this a mistake. Some do still think it was the right call. I'd say it's very unclear.