[swift-evolution] Proposal: x == 2 should not be a valid statement

Myles La Verne Schultz myleslschultz at icloud.com
Thu Feb 11 20:12:04 CST 2016


Agreed, -1, ‘==‘ is a very common idiom in Swift.
> On Feb 11, 2016, at 8:54 PM, Allen Ding via swift-evolution <swift-evolution at swift.org> wrote:
> 
> -1 from me.
> 
> This is a fundamental change to an operator that is one of the most frequently used in the language. IMO, any alternative has to offer the same ease of use in addition to any theorized benefits.
> 
> FWIW, I understand the potential for confusion and accidental typos, but with warnings from tooling (including in various other languages), I can't recall an instance of having made this particular in the past few years, so it isn't that big of a deal to me.
> 
> - Allen
> 
> 
> On Fri, Feb 12, 2016 at 7:32 AM, Amir Michail via swift-evolution <swift-evolution at swift.org <mailto:swift-evolution at swift.org>> wrote:
> It’s too easy to accidentally write “x==2” instead of “x=2”.
> 
> I don’t think something like “x==2” should be a valid statement.
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org <mailto:swift-evolution at swift.org>
> https://lists.swift.org/mailman/listinfo/swift-evolution <https://lists.swift.org/mailman/listinfo/swift-evolution>
> 
> _______________________________________________
> 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/20160211/95d18713/attachment.html>


More information about the swift-evolution mailing list