24 ms·
you can torture the logic further: let x : Something = outer_conditional ? baz() : conditional ? foo() : bar()
by bigdubs 12y ago
you can torture the logic further:
let x : Something = outer_conditional ? baz() : conditional ? foo() : bar()
- mikeash 12y agoI think this can look pretty nice, properly formatted: let x = conditional1 ? bar() : conditional2 ? baz() : conditional3 ? quux() : someDefault