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

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



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

Search: