Y
Hacker News
new
|
ask
|
show
|
jobs
by
urschrei
3593 days 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/...
1 comments
iopq
3591 days ago
I also wanted to avoid match expressions as well
link