[swift-evolution] Proposal: x == 2 should not be a valid statement
jcr at mac.com
jcr at mac.com
Thu Feb 11 17:58:14 CST 2016
> On Feb 11, 2016, at 3:50 PM, Jessy Catterwaul via swift-evolution <swift-evolution at swift.org> wrote:
>
>
>> What do you propose as an alternative operator for testing equivalence?
>
> =
>
> http://catterwaul.com/equality-operator/
>
> 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}
So, == gets replaced with six characters, plus a special case of “=“?
-1 from me. Don’t like this idea at all.
-jcr
More information about the swift-evolution
mailing list