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

I guess I don't quite get this. What I'm seeing here is that a non obvious breaking change is being turned into an obvious one.

If something is handling A and B, but you add C, the code probably needs to make sure it's handling C correctly.

I use Java in my dayjob and the behavior you've outlined is how I always code things, but it's manual and doesn't happen at compile time: I provide default that throws a runtime exception.



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

Search: