[swift-evolution] ternary operator ?: suggestion
thorsten at portableinnovations.de
thorsten at portableinnovations.de
Mon Dec 7 10:06:59 CST 2015
I would indent multiline expressions, so that the assignment target stands out.
let foo = if condition {
function1()
} else {
function2()
}
Same for the switch-expression.
-Thorsten
> Am 07.12.2015 um 04:11 schrieb Paul Ossenbruggen via swift-evolution <swift-evolution at swift.org>:
>
> let foo = if condition {
> function1()
> } else {
> function2()
> }
More information about the swift-evolution
mailing list