>>100182348
let x = if <cond> { shit } else { shat };
Is annoying verbose though.
Honestly, Rust should actually not have an if-statement and only a terninary operator but instead of an if statement if should have a cond statement, as in use the terniary for simple one-liners and:
cond {
<cond> => <arm>,
<cond> => <arm>,
<cond> => <arm>,
}
For anything more complex which is far more readable than if/else if type stuff.