[swift-evolution] [Accepted] SE-0121: Remove Optional Comparison Operators

Xiaodi Wu xiaodi.wu at gmail.com
Sat Aug 27 11:40:08 CDT 2016


Here's the link:
https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20160718/025132.html

On Sat, Aug 27, 2016 at 11:21 AM, Chris Lattner via swift-evolution <
swift-evolution at swift.org> wrote:

> On Aug 26, 2016, at 6:01 PM, Kevin Ballard <kevin at sb.org> wrote:
> > This change is going to have a HUGE impact for me. I use this sort of
> comparison _all the time_ and find it incredibly useful, and have had
> literally zero bugs caused by this. Surely I can't be the only one who uses
> this. I am not looking forward to copying & pasting a reimplementation of
> the comparison functions into every single project I work on.
>
> Hi Kevin,
>
> This fits into a more general idea of introducing a better “ordering”
> concept defined in terms of three way comparison results
> (less/equal/greater).  This would then become the primitive that sort would
> be built on, and would allow deriving the user friendly operators like <
> and <=.
>
> There was a sketch of this posted to swift-evolution several weeks ago,
> but I don’t have a link offhand.
>
> -Chris
>
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160827/95438297/attachment.html>


More information about the swift-evolution mailing list