jeff-jenness / close

Automatically exported from code.google.com/p/close
0 stars 0 forks source link

Add 'switch' statement #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What would you like added?

The standard C 'switch' statement, or something like it.

This is a "nice-to-have", so low priority. Anyone interested is welcome to
jump in.

How should it work?

    switch (i) {
    case 1:   say("one"); break;
    case 2:   say("two"); fallthru; # NOTE: Why not make it a keyword?
    default:  say("huh?");
    }

Please provide test cases, if possible.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by austin_h...@yahoo.com on 28 Jun 2009 at 10:34

GoogleCodeExporter commented 9 years ago

Original comment by austin_h...@yahoo.com on 29 Jun 2009 at 10:10

GoogleCodeExporter commented 9 years ago

Original comment by austin_h...@yahoo.com on 30 Jun 2009 at 6:50