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

The first break is ignored?


Not exactly. But it does create a no-op default. I've never seen/used this pattern, so I would have to go compile this down into assembly and play with it to give you a more complete answer.


Dropped by dead-code elimination. A compiler might conceivably issue a warning that the first break is unreachable, though that's never happened so far.




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

Search: