|
![](/i/fill.gif) |
clipka wrote:
> C++, Java, JavaScript and C# also use this concept
FWIW, C# is different. Each section of the switch has to end in either a
break or a goto, and if you want "fallthrough", you goto a different case
label. Best of both worlds: you get to share cases if you want, but the
cases are still independent, so you can (for example) rearrange them without
breaking your code.
Plus, you don't get to do things like put while loops around the cases but
inside the switch. :-)
--
Darren New, San Diego CA, USA (PST)
Serving Suggestion:
"Don't serve this any more. It's awful."
Post a reply to this message
|
![](/i/fill.gif) |