[swift-users] true false vs yes no
Isaac Gouy
igouy2 at yahoo.com
Sun Feb 7 15:29:17 CST 2016
On Sunday, February 7, 2016 1:09 PM, Oliver M <selectedfordeletion at yahoo.com> wrote:
>They seem like peculiar questions indeed, and you should use whichever variable name
> lightIsOn/isLightOn makes most sense to you in your particular code context. >
>You could pronounce "lightIsOn" using a high-rising terminal.
>
>If someone asked you "light is on?" using an australian upward inflection (where a rising
> pitch at the end of the sentence makes it sound like a question) would you reply "yes",
> or "true"?
I'm sorry, I thought you were objecting to the literals used for boolean values in Swift because you were accustomed to the literals used in Objective-C.
More information about the swift-users
mailing list