Suggestion: new switch statement

Jeff psychobrat at gmail.com
Mon Aug 21 03:06:49 PDT 2006


How about allowing:

switch (val) {
     case (1) {
	doX();
     } case (2, 3) {
         doY();
     } default {
         doZ();
     }
)

Or would this create some horrible syntactic ambiguities? Or, on the 
other hand, it could just be too damn ugly. ;)



More information about the Digitalmars-d mailing list