[swift-evolution] More verbose logical operators
Bee
bee.ography at gmail.com
Thu Dec 3 22:53:51 CST 2015
Hi all,
Swift is said to be a verbose and easy to read programming language.
However, I see Swift is still using cryptic symbols for logical operators.
! for not
|| for or
&& for and
Here I propose a new logical operators that are more swiftish.
'not' for not
'or' for or
'and' for and
So, instead of:
if !foo1 || foo2 && foo3 { … }
we could write it as:
if not foo1 or foo2 and foo3 { … }
which is much more readable because it's less cryptic.
What do you think?
Thank you.
Regards,
--
-Bee-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20151204/34885f80/attachment.html>
More information about the swift-evolution
mailing list