Comment by userbinator
11 hours ago
I would actually prefer chained ternaries over more verbose if/else expressions with duplicated LHS, so this does go back to the argument about "taste".
11 hours ago
I would actually prefer chained ternaries over more verbose if/else expressions with duplicated LHS, so this does go back to the argument about "taste".
This is one of the things I like about Rust. You can have both.
Unfortunately not all languages are Rust.
That isn't more concise than
But it's more readable, and that's what matters.
1 reply →