Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
urschrei
on Jan 28, 2017
|
parent
|
context
|
favorite
| on:
Java Without If
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/...
iopq
on Jan 30, 2017
[–]
I also wanted to avoid match expressions as well
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: