[swift-evolution] [proposal] extra if syntax

MobileSoft (Piotr) piotr at mobilesoft-lab.com
Wed May 11 14:54:03 CDT 2016


> In your example:
> a = 5 if b == x
> 
> What value is assigned to 'a' if 'b' and 'x' are not equal?

And what is with ‘a’ if this situation:

if b == x {
	a = 5
}

Nothing :)



More information about the swift-evolution mailing list