<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I like true/false - it might take a short time to get used to after YES/NO but it is more universally correct. <div class=""><br class=""></div><div class="">"if x == y" - I have a lot of trouble thinking about the result of that expression as YES while it is certainly “true”.</div><div class=""><br class=""></div><div class="">“true” also works just as well as YES when looking at a typical ObjC property like “isEnabled” or “userInteractionEnabled”.</div><div class=""><br class=""></div><div class="">I also thought back to George Boole. “Evaluates to true” is a phrase in the programmer’s lexicon and has been for a long time because those are the terms he used.</div><div class=""><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 7 Feb 2016, at 9:13 am, Oliver M via swift-users <<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><table cellspacing="0" cellpadding="0" border="0" class=""><tbody class=""><tr class=""><td valign="top" class=""><div class="">I found using "true/false" Boolean values reduced the code readability from the "YES/NO" of objective-c code.<br class=""><br class="">I'm wondering if others also consider "yes/no" to be simply better.<br class=""><br class="">A few reasons:<br class=""><br class="">Yes and no are much more common in every day English. Their concepts and meanings are well understood to everyone with little question. <br class=""><br class="">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 class=""><br class="">A code statement like isLightOn = yes makes perfect logical sense in English. isLightOn = true does not.<br class=""><br class="">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 class=""><br class="">I think it should.</div></td></tr></tbody></table>_______________________________________________<br class="">swift-users mailing list<br class=""><a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-users<br class=""></div></blockquote></div><br class=""></div></div></body></html>