<div dir="ltr"><span style="font-size:12.8px">Would you consider replacing the C style ?: ternary operator to something that does not use the question mark and colon ? </span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">The use of &quot;?&quot; can be confusing when speed reading code with optionals. </div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Consider this code as somebody learning swift as their first language.</div><div style="font-size:12.8px"><p><font face="monospace, monospace">let result = !condition ? 1 : 2</font></p></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Some alternatives:</div><div style="font-size:12.8px"><div><br></div><div>Haskel <div><div dir="ltr" style="direction:ltr;color:rgb(37,37,37);font-family:sans-serif;font-size:14px;line-height:14.9333px;background:rgb(248,248,248)"><pre style="white-space:pre-wrap;font-family:monospace,Courier;color:black;border:1px solid rgb(221,221,221);padding:1em;line-height:1.3em;background-color:rgb(249,249,249)"><span style="color:rgb(0,128,0);font-weight:bold">if</span> predicate <span style="color:rgb(0,128,0);font-weight:bold">then</span> expr1 <span style="color:rgb(0,128,0);font-weight:bold">else</span> expr2</pre></div><div>Python</div></div><div><pre style="white-space:pre-wrap;font-family:monospace,Courier;color:black;border:1px solid rgb(221,221,221);padding:1em;line-height:1.3em;font-size:14px;background-color:rgb(249,249,249)">result <span style="color:rgb(102,102,102)">=</span> x <span style="color:rgb(0,128,0);font-weight:bold">if</span> a <span style="color:rgb(102,102,102)">&gt;</span> b <span style="color:rgb(0,128,0);font-weight:bold">else</span> y</pre></div><div>The advantage of not using the question mark is that the language will be more consistency on the use of &quot;?&quot; to mean only optionals. <br></div><div><br></div><div><br></div><div>References:</div><div><a href="https://devforums.apple.com/message/1020139#1020139" target="_blank">https://devforums.apple.com/message/1020139#1020139</a></div></div></div><div style="font-size:12.8px"><a href="https://github.com/rust-lang/rust/issues/1698#issuecomment-3705066" target="_blank">https://github.com/rust-lang/rust/issues/1698#issuecomment-3705066</a></div></div>