| From | Sent On | Attachments |
|---|---|---|
| Randall R Schulz | Dec 3, 2007 3:41 pm | |
| Stand Trooper | Dec 3, 2007 4:03 pm | |
| Randall R Schulz | Dec 3, 2007 4:07 pm | |
| Stand Trooper | Dec 3, 2007 4:34 pm | |
| Russel Winder | Dec 3, 2007 9:46 pm | |
| Russel Winder | Dec 3, 2007 9:49 pm | |
| Charles Oliver Nutter | Dec 3, 2007 9:52 pm | |
| Randall R Schulz | Dec 3, 2007 10:10 pm | |
| Jochen Theodorou | Dec 4, 2007 5:59 am | |
| Charles Oliver Nutter | Dec 4, 2007 10:59 am | |
| Jochen Theodorou | Dec 4, 2007 11:51 am | |
| Smith, Jason, CTR, OASD(HA)/TMA | Dec 4, 2007 1:10 pm | |
| Charles Oliver Nutter | Dec 4, 2007 1:24 pm | |
| Charles Oliver Nutter | Dec 4, 2007 1:29 pm | |
| Jochen Theodorou | Dec 4, 2007 1:54 pm | |
| Smith, Jason, CTR, OASD(HA)/TMA | Dec 4, 2007 2:33 pm | |
| Jochen Theodorou | Dec 4, 2007 2:44 pm | |
| Charles Oliver Nutter | Dec 4, 2007 2:56 pm | |
| Smith, Jason, CTR, OASD(HA)/TMA | Dec 5, 2007 6:35 am | |
| Charles Oliver Nutter | Dec 5, 2007 10:16 am | |
| Smith, Jason, CTR, OASD(HA)/TMA | Dec 5, 2007 10:29 am | |
| Jochen Theodorou | Dec 5, 2007 5:45 pm | |
| Jochen Theodorou | Dec 7, 2007 8:31 am | |
| Randall R Schulz | Dec 7, 2007 8:37 am | |
| Jochen Theodorou | Dec 7, 2007 8:49 am | |
| Guillaume Laforge | Dec 7, 2007 9:01 am | |
| Jochen Theodorou | Dec 7, 2007 9:14 am | |
| Guillaume Laforge | Dec 7, 2007 9:16 am | |
| Randall R Schulz | Dec 7, 2007 9:22 am | |
| Guillaume Laforge | Dec 7, 2007 9:28 am | |
| Charles Oliver Nutter | Dec 7, 2007 10:09 am | |
| Charles Oliver Nutter | Dec 7, 2007 10:11 am | |
| Randall R Schulz | Dec 7, 2007 10:18 am | |
| Jochen Theodorou | Dec 7, 2007 10:31 am | |
| Charles Oliver Nutter | Dec 7, 2007 12:23 pm | |
| Randall R Schulz | Dec 7, 2007 12:37 pm | |
| Charles Oliver Nutter | Dec 7, 2007 1:35 pm | |
| Randall R Schulz | Dec 7, 2007 1:40 pm | |
| Gavin Grover | Dec 7, 2007 11:49 pm | |
| Jochen Theodorou | Dec 8, 2007 3:40 am |
| Subject: | Re: [groovy-user] Re: Acceptable Placement of default: Within Switch? | |
|---|---|---|
| From: | Guillaume Laforge (glaf...@gmail.com) | |
| Date: | Dec 7, 2007 9:01:38 am | |
| List: | org.codehaus.groovy.user | |
Furthermore, on all the usual Java usages of switch / case, they work exactly the same in Groovy. So I don't see why we would not be allowed to use the same syntax, to ease the transition for Java developers.
On Dec 7, 2007 5:49 PM, Jochen Theodorou <blac...@gmx.org> 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.
At the very least, putting "default:" anywhere but the end should be a compile-time error. Right?
I would say so, yes.
bye blackdrag
-- Jochen "blackdrag" Theodorou The Groovy Project Tech Lead (http://groovy.codehaus.org) http://blackdragsview.blogspot.com/ http://www.g2one.com/
---------------------------------------------------------------------
To unsubscribe from this list please visit:
-- Guillaume Laforge Groovy Project Manager G2One, Inc. Vice-President Technology http://www.g2one.com





