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

Joe Groff jgroff at apple.com
Thu Feb 11 17:52:47 CST 2016


This should be covered by the standard library making `==` @warn_unused_result and/or the language making @warn_unused_result the default behavior for all declarations.

-Joe

> On Feb 11, 2016, at 3:32 PM, Amir Michail via swift-evolution <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
> https://lists.swift.org/mailman/listinfo/swift-evolution



More information about the swift-evolution mailing list