Closed
Description
The operators will still work, because they are a language feature. This would remove the need for TotalEq
and TotalOrd
. The current situation is too complex and traits without requirements aren't good traits. These do need some kind of definition, whether it's a total ordering or a weak ordering.
Floating point types could still implement these via the IEEE754 total ordering predicate. For equality, it will be as fast as it's just a bitwise comparison. It looks like there's no way to avoid a performance hit for comparisons, but the traditional weak ordering can still be provided via alternate methods.
Metadata
Metadata
Assignees
Labels
No labels