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

John Randolph jcr at mac.com
Thu Feb 11 17:45:10 CST 2016


> On Feb 11, 2016, at 3:37 PM, Jessy Catterwaul via swift-evolution <swift-evolution at swift.org> wrote:
> 
>> 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.

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

-jcr


More information about the swift-evolution mailing list