Comment Comment by Casperin Yes. It requires that `if else` can be used as expressions, which for some reason in most languages that can not.In the beginning of doing Rust I was missing the ternary operator, but now I couldn't care less. foo = if y { x } else { y } Works well :-) parent Casperin 4 years ago
In the beginning of doing Rust I was missing the ternary operator, but now I couldn't care less.
Works well :-)