Does Rust have any equivalent to
x = a ? b : c;
I would guess someone could write a macro that writes out
if a {
b
} else {
c
}
maybe in a crate somewhere, if not in core?
x = a | b;
would be useful as well with C assumptions for truth being non zero.
(I'm porting Java, seems Rust is a lot more verbose even than Java)