Hi Giacomo, Not sure whether this will be of interest to you, but I have been working on a JS-derived language called Proto (still highly experimental) which has a switch statement that works exactly as you described:
https://github.com/Nathan-Wall/proto/blob/master/docs/control/switch.md Perhaps you will at least find it interesting. :) Nathan ________________________________ > From: cau.giacomo...@tiscali.it > To: es-discuss@mozilla.org > Subject: Another switch > Date: Sun, 9 Feb 2014 10:41:40 +0100 > > Hello to all > I wish to submit a little proposal. > > Today the switch statement has an > explicit break at the end of the statement and an > implicit continue to the next case > > but this break is very boring and error prone. > > Wouldn’t it be possible to think a switch that has an > explicit continue to the next case and an > implicit break at the end of the statement? > > This is the hypothetical new statement syntax > with a new keyword: > > hctiws ( ... ) { ... } > select ( ... ) { ... } > > or without a new keyword: > > switch ( ... ) break { ... } > > but with the current switch equals to > > switch ( ... ) continue { ... } > > bye > > Giacomo Cau > > _______________________________________________ es-discuss mailing list > es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss > _______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss