[swift-evolution] [Proposal draft] Enhanced floating-point protocols
Stephan Tolksdorf
st at quanttec.com
Fri Apr 15 11:52:05 CDT 2016
Hi Stephen,
You write
> * FloatingPoint should conform to Equatable, and Comparable
but the documentation for Equatable and Comparable states that == and <
must implement an equivalence relation and a strict total order, which
is incompatible with the default IEEE-754 implementation of these
operators when NaN values are involved. How do you resolve this conflict?
- Stephan
More information about the swift-evolution
mailing list