Hacker News new | ask | show | jobs
by loup-vaillant 4317 days ago
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.)

2 comments

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.