"Eric S. Raymond" <esr@thyrsus.com>: > I disagree. Such fallthrough is very useful when writing state machines, > which is a significant part of the utility of a case statement. It only handles a special case, though, where one branch is a strict postfix of another. It's no use if the factoring you want to do is any more complicated. Also, it's backwards to require you to explicitly state where you *don't* want fallthrough, when it's most often not what you want. I'm about -100 on fallthrough. Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | A citizen of NewZealandCorp, a | Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. | greg@cosc.canterbury.ac.nz +--------------------------------------+
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4