Hacker News new | past | comments | ask | show | jobs | submit login

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/...



I also wanted to avoid match expressions as well




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: