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

ilya ilya.nikokoshev at gmail.com
Wed Dec 16 08:33:12 CST 2015

Well the best way to make sure there is no confusion is to discourage the
usage of both operators.

Every time there's an expression that contains an excessive number of !s it
can be refactored by extracting separate variables, using non forced
unwrapping, comparing with true and false etc.

Not sure a syntactic change is warranted.

On Wed, Dec 16, 2015 at 17:04 Yichen Cao via swift-evolution <
swift-evolution at swift.org> wrote:

> Instead, I prefer the force unwrap to be another character other than the
> negate operator. It makes no sense to have the negation operator be
> universal and suddenly introduce the force unwrap with the same character.
> Yichen
> _______________________________________________
> 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/20151216/eefe2abe/attachment.html>

More information about the swift-evolution mailing list