Re:Rust for JavaScript Developers – Functions and Control Flow
by mekkkkkk on Monday July 06, 2020 @06:13AM
(#23746297)
I've come to hesistently accept nested ternaries, but I try to have all lines lead with a colon. This kinda mimics a switch statement with returns.
Always fun to see how people treat ternary nesting. They still feel a bit naughty to me. The terseness is sort of unbeatable though.
[ Parent
| on HN ]