true false vs yes no

(Isaac Gouy) #1

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.


On Sunday, February 7, 2016 1:09 PM, Oliver M <> 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"?