Jochen Theodorou wrote:
Randall R Schulz schrieb:
But I think having so much syntactic indistinguishability from what is
a barely related Java construct is asking for trouble.
I don't think so, because switch-case is barely used in Java and we do
not hide that our switch is doing much more than the switch used in Java.
I use switch-case all the time, especially with enums. For all but the
most trivial cases, it's faster than a chain of if/else if checks.