> On 27 Aug 2016, at 02:01, Kevin Ballard via swift-evolution
> <[email protected]> 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.
Can you give some examples as to how this will have such a huge impact? Now
that we have the ?? operator it seems that this is fairly easy to replace:
value < 5 // where value is of type Int?
With:
(value ?? 0) < 5
The latter is completely clear what the behaviour of nil is.
Also, you can still re-add the operators where you need them, ideally with as
limited a type as possible so you can make sure that it's behaviour is well
defined._______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution