<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=""><br class=""><div><blockquote type="cite" class=""><div class="">On Dec 4, 2015, at 1:18 PM, Per Melin &lt;<a href="mailto:p@greendale.se" class="">p@greendale.se</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">On Fri, Dec 4, 2015 at 1:03 AM, Amir Michail <span dir="ltr" class="">&lt;<a href="mailto:a.michail@me.com" target="_blank" class="">a.michail@me.com</a>&gt;</span> wrote:<br class=""></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class=""><br class="">
</span>I really don’t like having to put the ! suffix in boolean contexts:<br class=""></blockquote><div class=""><br class=""></div><div class=""><div class="">To be explicit:</div><div class=""><br class=""></div><div class="">&nbsp; &nbsp; let a: Bool! = false</div><div class=""><br class=""></div><div class="">&nbsp; &nbsp; if a == false { } &nbsp;// Works as expected<br class=""></div><div class=""><br class=""></div><div class="">&nbsp; &nbsp; if !a { } &nbsp;// Works as expected</div><div class=""><br class=""></div><div class="">&nbsp; &nbsp; if a { } &nbsp; // "error: optional type 'Bool!' cannot be used as a boolean; test for '!= nil' instead"</div></div><div class=""><br class=""></div><div class="">Xcode "fixes" the last line like this:</div><div class=""><br class=""></div><div class="">&nbsp; &nbsp; if (a != nil) { }<br class=""></div></div></div></div></div></blockquote><br class=""></div><div>Huh ok. &nbsp;Out of curiosity, why are you using IUOs for this? &nbsp;I’m interested in (continuing to ) dramatically reduce the prevalence of IOUs in code (eliminating the need to use them), and reduce their power in various ways. &nbsp;IUOs are one of the biggest sources of surprising behavior in Swift, and while they were a necessary feature to start with, their importance is going down over time.</div><div><br class=""></div><div>-Chris</div><br class=""></body></html>