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

Jessy Catterwaul mr.jessy at gmail.com
Thu Feb 11 17:50:21 CST 2016

> What do you propose as an alternative operator for testing equivalence?



Jonathan Tang’s brings this up: 
{x == 2}

You’d need to use the return keyword. Oh well; I think it reads better.
{return x = 2}

More information about the swift-evolution mailing list