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

Jonathan Tang jonathan.d.tang at gmail.com
Thu Feb 11 17:41:10 CST 2016

On Thu, 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.

I'd love to see this become a compiler warning.  Unsure about making it an
error; how would it affect implicit return from lambdas?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160211/3383bd03/attachment.html>

More information about the swift-evolution mailing list