[swift-users] true false vs yes no

Isaac Gouy igouy2 at yahoo.com
Sat Feb 6 16:26:40 CST 2016


On Saturday, February 6, 2016 2:13 PM, Oliver M 


> A code statement like isLightOn = yes makes perfect logical sense in
> English. isLightOn = true does not.

But lightIsOn does make sense ;-)


if lightIsOn {
} else {
}

while lightIsOn {
}


More information about the swift-users mailing list