[swift-evolution] Proposal to change Logical NOT Operator from exclamation mark ( ! ) to something else

Chris Lattner clattner at nondot.org
Thu Feb 16 00:25:33 CST 2017


On Feb 15, 2017, at 6:02 AM, Sadiq via swift-evolution <swift-evolution at swift.org> wrote:
> I would like to suggest to change Logical NOT Operator from ! to something else. 
> It will increase the readability of the code and will avoid any confusion with the symbol used for force unwrapping of optional values. 
> It would be easier for new programmers to learn Swift as the first language. 
> I don't understand the rational behind using the same operator for two different purposes. 

Source breaking changes like this have to be motivated by an overwhelming reason to be worth changing in Swift 4.  Surface level syntax changes like this were the purview of Swift 3, and are very unlikely to make the cut in Swift 4.

-Chris



More information about the swift-evolution mailing list