<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Pitch: I&#39;d like to simplify the syntax, compiler complexity and learning curve for newcomers when it comes to dealing with the ternary function. The best way to do that, in my opinion, is to remove it entirely and add a new function with better semantics that takes care of ternary operations entirely within the Swift language.</div></div></blockquote><div><br></div><div>-1</div><div><br></div><div>A lot of things can and will be confusing for newcomers, that&#39;s not the reason to remove them. Being a newbie is a transitional state.</div><div>OTOH, I&#39;ve never got why ternary is considered especially confusing, for me it never was a problem and I love the terseness of it.</div><div>Only total novices in programming may be surprised by it, but they will be suprised by a lot of things anyway, so ternary is the least of their problems. Those with experiene in other languages will be most likely already familiar with the</div><div>operator.</div><div>Also, many come to Swift from Objective C, which not only has ternary, but also supports a variant where you can use it kind of like ?? in Swift: NSString *other = someString ?: @&quot;default string&quot;.</div><div><br></div><div>Removing ?: gains nothing and loses a lot, I&#39;d say.</div><div><br></div><div>Best regards,</div><div>Rimantas</div></div></div></div>