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.
At the very least, putting "default:" anywhere but the end should be a
compile-time error. Right?
I would say so, yes.
Jochen "blackdrag" Theodorou
The Groovy Project Tech Lead (http://groovy.codehaus.org)