[swift-evolution] [proposal] extra if syntax

MobileSoft (Piotr) piotr at mobilesoft-lab.com
Tue May 10 13:10:31 CDT 2016


I think that should be added new ‘postfix’ if syntax:
a = 5 if b == x

the code will be better readable. For example:

a = 5 if b == x
c = 6
d = 8
e = 10 if y == true
f = 12

in this situation all assigns are on the same, left side.

regards
piotr


More information about the swift-evolution mailing list