Equatable and Comparable currently require implementation of == and \< respectively.
There are many benefits to replacing the \< operation of Comparable to return a ternary enum for less, equal, greater. == and \< could then be implemented in terms of it.
For simplicity and source compatibility, implementations of == / \< should still be accepted as fulfilling the requirements of the ternary equivalent.
Additional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | Standard Library | |Labels | Improvement, swift-evolution-proposal-needed | |Assignee | None | |Priority | Medium | md5: 4358b25b7134cfa112592b2bdfc49432Issue Description:
Equatable and Comparable currently require implementation of == and \< respectively.
There are many benefits to replacing the \< operation of Comparable to return a ternary enum for less, equal, greater. == and \< could then be implemented in terms of it.
For simplicity and source compatibility, implementations of == / \< should still be accepted as fulfilling the requirements of the ternary equivalent.