3 ms·
You've qualified your approach in various ways downthread, but you can avoid ifs far more easily with two simple enums and two match statements. https://github.
by urschrei 10y ago
You've qualified your approach in various ways downthread, but you can avoid ifs far more easily with two simple enums and two match statements. https://github.com/urschrei/rust_fizzbuzz/blob/by_reference/src/main.rs https://github.com/urschrei/rust_fizzbuzz/blob/by_reference/...
- iopq 10y agoI also wanted to avoid match expressions as well