3 ms·
I think Rust uses "if" for its match guards too and I don't recall it upsetting anyone. I'm all for keeping things consistent between languages if only to preve
by pkulak 4y ago
I think Rust uses "if" for its match guards too and I don't recall it upsetting anyone. I'm all for keeping things consistent between languages if only to prevent too much bike shedding.
- tialaramex 4y agoRust's if never needs parentheses, so their absence in a match guard is unremarkable, whereas in Java that's incongruous one way or the other.