Y
Hacker News
new
|
ask
|
show
|
jobs
by
hacking_again
3183 days ago
> What if you just don't have meaningful things to do for that enum value?
Then you use:
default: break;
It's a small price to pay for the consistency checks elsewhere when you don't have a default.