News for hackers. Stuff that matters.
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.
Re:Making Rust as Fast as Go by gpm on Sunday May 03, 2020 @03:33PM (#23061250)
It's absolutely intentional, and it's got being technically correct on its side, it's just frustrating.
Re:Making Rust as Fast as Go by oxnrtr on Monday May 04, 2020 @07:48AM (#23066853)
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.