Y
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
gpm
2239 days ago
It's absolutely intentional, and it's got being technically correct on its side, it's just frustrating.
link
oxnrtr
2238 days ago
Not really. That Rust forced total order and partial order into a sub-typing relation is a completely unnecessary, self-inflicted wound.
link
steveklabnik
2238 days ago
Many folks do consider this a mistake. Some do still think it was the right call. I'd say it's very unclear.
link