On 06/21/2010 05:11 PM, Jonathan M Davis wrote:
Having something like "fallthrough" or "goto next case" would of course be even clearer, but those would require new keywords.
I think "fallthrough" would be a perfect keyword to add here. C programmers will immediately recognize it. Switch/case are already specialized keywords, and fallthrough can complete the set. It's unlikely to conflict with existing source, and this is one case where having a conspicuously long keyword is a good thing.
Finally, goto is ugly and continue is strongly associated with looping.