[swift-evolution] Remove (!) logical negation operator (swift-evolution Digest, Vol 1, Issue 181)
Rainer Brockerhoff
rainer at brockerhoff.net
Tue Dec 15 13:47:40 CST 2015
On 12/15/15 14:05, Tommy van der Vorst wrote:
> I *do* see negative effects of removing it: ! is part of virtually
> all programming languages currently in use, any decent programmer is
> accustomed to it and read it like 'not' in their head anyway.
> Removing would definitely confuse newcomers to the language.
I agree with that.
However, should `!` be removed, I'd suggest `~` — which already means
negation for integers, but is currently not defined on booleans.
--
Rainer Brockerhoff <rainer at brockerhoff.net>
Belo Horizonte, Brazil
"In the affairs of others even fools are wise
In their own business even sages err."
http://brockerhoff.net/blog/
More information about the swift-evolution
mailing list