> On Apr 25, 2016, at 8:45 PM, Xiaodi Wu via swift-evolution
> <[email protected]> wrote:
>
> Suggestions re naming of `isLessThanOrEqualTo(_:)`:
> "Less-than" can be regarded as a unit. Thus, `isLessThan(_:)` is reasonable.
> However, `isEqualTo(_:)` is kind of a stretch, but it could just be
> `equals(_:)`. Thus, you could have:
> ```
> equals(_:)
> isLessThan(_:)
> isLessThanOrEquals(_:)
> isGreaterThan(_:)
> isGreaterThanOrEquals(_:)
> isTotallyOrdered(below:)
The other thing that comes to mind is:
isEqual(comparedWith: )
isLess(comparedWith: )
isLessOrEqual(comparedWith: )
isTotallyOrdered(below: )
I don’t love these either, but something in this direction may be workable.
– Steve_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution