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

I'm going to write a pre-processor which adds the appropriate `break` statements automatically. No more fall-through bug.

(And if you really want to fall through, I could add a `fallthrough` keyword.)



For what it's worth, it's a style bug in FreeBSD to have a fallthrough which does not have a /* FALLTHROUGH */ comment.


Yep, could even re-use the "continue" keyword.




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

Search: