<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">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=""> let a | x == y = a<br class=""> | otherwise = b<br class=""><br class=""> let b | colour.Red = 0xff0000</font><div class=""><font face="Courier" class=""> | colour.Green = 0x00ff00</font></div><div class=""><font face="Courier" class=""> | colour.Blue = 0x0000ff</font></div><div class=""><font face="Courier" class=""> | 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 | (bar) as "when", | otherwise (bar otherwise) as "otherwise" and = as "is" or "be"), you're probably doing something right.</div></body></html>