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

Seth Friedman sethfri at gmail.com
Fri Feb 12 00:52:17 CST 2016


-1.

I'm honestly a little confused about how a two sentence email complaining
about a typo with no proposal for a better replacement could spawn a 25
message thread.

IMO, emails to swift-evolution should be well thought out ideas (even if
they're not full formed proposals) so as to not waste people's time. This
list is high traffic enough as it is, which makes it harder to participate
than I would like.

Thanks,
Seth
On Thu, Feb 11, 2016 at 10:15 PM David Waite via swift-evolution <
swift-evolution at swift.org> wrote:

> Won’t that conflict with the existing use of “is” as a keyword for type
> tests?
>
> You know, if we proposed changing ‘ == ‘ to ‘ = ‘ and ‘ = ‘ to ‘ := ‘ it
> would break all existing code, plus *really* stir up the “Colon vs Equals”
> thread.
>
> I’m of course  -1 on changing around equality, equivalence and assignment
> syntax without strong justification.
>
> -DW
>
> > On Feb 11, 2016, at 4:59 PM, Jessy Catterwaul via swift-evolution <
> swift-evolution at swift.org> wrote:
> >
> >> So, == gets replaced with six characters, plus a special case of “=“?
> >>
> >> -1 from me.  Don’t like this idea at all.
> >
> > Fair enough. How about “is”?
> >
> > {x is 2}
> > _______________________________________________
> > swift-evolution mailing list
> > swift-evolution at swift.org
> > https://lists.swift.org/mailman/listinfo/swift-evolution
>
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160212/075afb09/attachment.html>


More information about the swift-evolution mailing list