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

This is just terrible. The fact that the compiler complains if an enum is added without updating the switch statement is a feature. The enum and switch version is clear and explicit. To defeat it, in the name of... what, code obfuscation? beggars belief.


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

Search: