Y
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
cperciva
4317 days ago
For what it's worth, it's a style bug in FreeBSD to have a fallthrough which does not have a /* FALLTHROUGH */ comment.
link
scintill76
4317 days ago
Yep, could even re-use the "continue" keyword.
link