<div dir="ltr">True and false goes way back to An Investigation of the Laws of Thought on Which are Founded the Mathematical Theories of Logic and Probabilities by George <u>Boole</u>, published in 1854.<div><br></div><div><a href="http://www.gutenberg.org/ebooks/15114">http://www.gutenberg.org/ebooks/15114</a></div><div><br></div><div>-david<br><div><br></div><div><br></div><div><br></div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Feb 6, 2016 at 2:13 PM, Oliver M via swift-users <span dir="ltr"><<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top"><div>I found using "true/false" Boolean values reduced the code readability from the "YES/NO" of objective-c code.<br><br>I'm wondering if others also consider "yes/no" to be simply better.<br><br>A few reasons:<br><br>Yes and no are much more common in every day English. Their concepts and meanings are well understood to everyone with little question. <br><br>Concepts of truthfulness and falsehood have a great deal of philosophical/moral baggage associated with them and can be very subjective. They are not used regularly in every day English. Philosophers spend ages debating what is "truth", lawyers spend months arguing over who's truth to believe and theologians are ever searching for "a deeper truth".<br><br>A code statement like isLightOn = yes makes perfect logical sense in English. isLightOn = true does not.<br><br>Considering proposal SE-0005 point 5 is
committing to using 'is' bool variable names (e.g. isLightOn) should true/false be replaced with yes/no?<br><br>I think it should.</div></td></tr></tbody></table><br>_______________________________________________<br>
swift-users mailing list<br>
<a href="mailto:swift-users@swift.org">swift-users@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-users" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-users</a><br>
<br></blockquote></div><br></div>