[swift-evolution] ternary operator ?: suggestion
    thorsten at portableinnovations.de 
    thorsten at portableinnovations.de
       
    Sun Dec  6 15:43:53 CST 2015
    
    
  
I strongly dislike the one liner with only punctuation to separate the cases because it is very difficult to spot the pairs.
I fail to see why we have to have new syntax for the expression case. 
-Thorsten 
> Am 06.12.2015 um 21:30 schrieb Paul Ossenbruggen via swift-evolution <swift-evolution at swift.org>:
> 
> let myColor = yourColor switch? .Blue :  .Red, .Green: .Blue, .Red: .Green, default: .Yellow
    
    
More information about the swift-evolution
mailing list