<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><br></div><div>On Oct 25, 2016, at 23:51, Charlotte Angela Tortorella via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>&gt; wrote:<br><br></div><blockquote type="cite"><div class=""><div class=""><a href="https://gist.github.com/Qata/25a11c21200f1cf8f43ed78e9ffd727c#disadvantages-of-the-ternary-operator" class="">Disadvantages of The Ternary Operator</a></div><div class=""><br class=""></div><div class="">[...]</div></div></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><div class=""><div class="">6. This operator is only applicable to a single type, `Bool`.</div><div class=""><br class=""></div><div class="">[...]</div></div></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><div class=""><div class=""><a href="https://gist.github.com/Qata/25a11c21200f1cf8f43ed78e9ffd727c#proposed-approach" class="">Proposed Approach</a></div><div class=""><br class=""></div><div class="">We should drop the ternary operator in favor of a new extension to `Bool`.</div></div></blockquote><span style="background-color: rgba(255, 255, 255, 0);"><div><span style="background-color: rgba(255, 255, 255, 0);"><br></span></div>I'm not sure proposals should do exactly what they claim is a downside of the current approach.&nbsp;</span><span style="background-color: rgba(255, 255, 255, 0);">Especially when the downside in question is inherent to the problem being solved.</span><div><span style="background-color: rgba(255, 255, 255, 0);"><br></span></div><div><span style="background-color: rgba(255, 255, 255, 0);">FWIW, the only thing I find confusing about the ternary operator is that I can't overload it. Being able to define my own ternary operators would be great, but I don't have an answer to obvious potential ambiguities.</span></div><div><span style="background-color: rgba(255, 255, 255, 0);"><br></span></div><div><span style="background-color: rgba(255, 255, 255, 0);">- Dave Sweeris</span></div></body></html>