Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
loup-vaillant
on Aug 20, 2014
|
parent
|
context
|
favorite
| on:
fork() can fail
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.)
cperciva
on Aug 20, 2014
|
next
[–]
For what it's worth, it's a style bug in FreeBSD to have a fallthrough which does not have a /* FALLTHROUGH */ comment.
scintill76
on Aug 21, 2014
|
prev
[–]
Yep, could even re-use the "continue" keyword.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
(And if you really want to fall through, I could add a `fallthrough` keyword.)