[swift-evolution] Remove (!) logical negation operator

Andrey Tarantsov andrey at tarantsov.com
Thu Dec 17 05:29:36 CST 2015

> +1 for clean-up:
> • "and" instead of && 
> • "or" instead of ||
> • "not" instead of !
> • if expressions instead of ?!

+1 from me as well. Should be a separate proposal, though?

I understand the concern that Chris expressed before:

> We’ve briefly considered this in the past.  However, this doesn’t align well with the design of swift, which partitions infix and prefix operators into their own namespace (composed of operator characters) and normal identifiers (composed of “identifier characters”).  You can see the grammar for this in the Swift Programming Language Reference.

...but I don't see why the language cannot be extended to allow defining and using identifiers as operators.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20151217/5570bb34/attachment.html>

More information about the swift-evolution mailing list