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

Jessy Catterwaul mr.jessy at gmail.com
Thu Feb 11 17:37:16 CST 2016


> I don’t think something like “x==2” should be a valid statement.

I agree, but I think that is best dealt with by removing == from Swift entirely. == is only useful in languages where a value is returned from an assignment operation.


More information about the swift-evolution mailing list