<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 <<a href="mailto:p@greendale.se" class="">p@greendale.se</a>> 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=""><<a href="mailto:a.michail@me.com" target="_blank" class="">a.michail@me.com</a>></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=""> let a: Bool! = false</div><div class=""><br class=""></div><div class=""> if a == false { } // Works as expected<br class=""></div><div class=""><br class=""></div><div class=""> if !a { } // Works as expected</div><div class=""><br class=""></div><div class=""> if a { } // "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=""> if (a != nil) { }<br class=""></div></div></div></div></div></blockquote><br class=""></div><div>Huh ok. Out of curiosity, why are you using IUOs for this? 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. 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>