4 ms·
C's default fall-through in case statements has long been its most controversial single feature; Duff observed that "This code forms some sort of argument in t
by JBiserkov 17y ago
C's default fall-through in case statements has long been its most controversial single feature; Duff observed that
"This code forms some sort of argument in that debate, but I'm not sure whether it's for or against."
hack^2 - it's so brilliant and so ugly, even his author doesn't know which is more.
- benhoyt 17y agoAre you sure the case-label-fall-through has been its most controversial feature? It's so obscure (most people haven't heard of it) and rarely-used -- I'm guessing there are other aspects of C that are more controversial, or at the very least, more widely debated. By the by, we've used this "feature" a fair bit in C and C++ for protothreads in small embedded systems: see http://blog.brush.co.nz/2008/07/protothreads/ http://blog.brush.co.nz/2008/07/protothreads/ and http://www.sics.se/~adam/pt/ http://www.sics.se/~adam/pt/