<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>This looks reasonable in declarations but how would it work in expressions? &nbsp;Or are you suggesting that it is only usable for declarations?<br><br>Sent from my iPad</div><div><br>On Dec 22, 2015, at 9:25 AM, Angelo Villegas 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>I for one feels like the ternary operator still has a future with Swift.<br class=""><br class="">If the discussion with ternary will go on though, I would like to weigh in a suggestion:<br class=""><br class=""><font face="Courier" class="">&nbsp; &nbsp;&nbsp;let a | x == y = a<br class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | otherwise = b<br class=""><br class="">&nbsp; &nbsp; let b | colour.Red = 0xff0000</font><div class=""><font face="Courier" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | colour.Green = 0x00ff00</font></div><div class=""><font face="Courier" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | colour.Blue = 0x0000ff</font></div><div class=""><font face="Courier" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | otherwise = 0x000000<br class=""></font><br class="">My rule of thumb for a style like this is that if you can read it as if it was English (read&nbsp;| (bar)&nbsp;as "when",&nbsp;| otherwise (bar otherwise)&nbsp;as "otherwise" and&nbsp;=&nbsp;as "is" or "be"), you're probably doing something right.</div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=eLFMrKDT8iBxZ-2Fbnk-2BZqvSchNN-2FvYXdceA0T7VxwkAf-2FkSH9aYxDJfUmY8VbF2oU8sTslmlZ9SrpFQHwEhEO-2Fe16odmfHIQRw8oHEhBYWBNkqoRnjh3dNbBPCFybCy9ukXzKdh1yJML-2BJo8BPtrmbigF8-2FqWxjHgvrpyPU9boRSGE6ohWQuXDo4WN5iVAs3dk0vjsRHsj96DKCZuIyn3mRy6tVL12UONamWDMCaC4nQ-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;">

</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>swift-evolution mailing list</span><br><span><a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a></span><br><span><a href="https://lists.swift.org/mailman/listinfo/swift-evolution">https://lists.swift.org/mailman/listinfo/swift-evolution</a></span><br></div></blockquote></body></html>