529
The meaning of this
(lemmy.ml)
Post funny things about programming here! (Or just rant about your favourite programming language.)
The conventional ternary is structured like a normal if-else. In fact, in many languages with functional influence, they're the same thing.
For example, you can write this in Rust: