Re:Making Rust as Fast as Go
by arcticbull on Sunday May 03, 2020 @03:31PM
(#23061240)
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.
[ Parent
| on HN ]
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.
Re:Making Rust as Fast as Go
by steveklabnik on Monday May 04, 2020 @04:57PM
(#23073158)
Many folks do consider this a mistake. Some do still think it was the right call. I'd say it's very unclear.