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
_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to