[swift-evolution] [pitch] Comparison Reform

Xiaodi Wu xiaodi.wu at gmail.com
Thu Apr 13 19:03:21 CDT 2017


On Thu, Apr 13, 2017 at 7:02 PM, Jonathan Hull via swift-evolution <
swift-evolution at swift.org> wrote:

> This is a sugar request, but if we are rearranging these things anyway,
> can we *please* add the ‘≤’, ‘≥’, and ‘≠’ operators to comparable.  I know
> they would do the same thing as ‘<=‘, ‘>=‘, and ‘!=‘, but they can’t really
> be used for anything else without being confusing (because they literally
> have that meaning in mathematics), and they make my code so much more
> readable.
>

This is vastly increasing API surface area for every user of Swift for
literally no functionality. Why isn't it sufficient that Swift allows you
to do this for yourself without restriction?


>
> Thanks,
> Jon
>
>
>
> On Apr 13, 2017, at 1:24 PM, Ben Cohen via swift-evolution <
> swift-evolution at swift.org> wrote:
>
> Online copy here:
>
> https://github.com/airspeedswift/swift-evolution/blob/
> fa007138a54895e94d22e053122ca24ffa0b2eeb/proposals/NNNN-
> ComparisonReform.md
>
>
>
> _______________________________________________
> 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/20170413/66e826df/attachment.html>


More information about the swift-evolution mailing list