You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
implement the total ordering for Eq and Ord, and offer the traditional comparison operators via intrinsics and the Float trait
drop the implementations of Eq, Ord and traits inheriting from these like Num (alternate types could implement the total ordering)
Either way, it's an ugly mess. I no longer think a consensus can be reached to change the definition of the operators to using the totalOrder predicate due to both performance concerns and the desire to have the usual semantics so that's not part of the RFC.
The text was updated successfully, but these errors were encountered:
There are two solutions available:
Eq
andOrd
, and offer the traditional comparison operators via intrinsics and theFloat
traitEq
,Ord
and traits inheriting from these likeNum
(alternate types could implement the total ordering)Either way, it's an ugly mess. I no longer think a consensus can be reached to change the definition of the operators to using the
totalOrder
predicate due to both performance concerns and the desire to have the usual semantics so that's not part of the RFC.The text was updated successfully, but these errors were encountered: