Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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