Giacomo Cau (2014-02-17T20:43:50.000Z)
domenic at domenicdenicola.com (2014-02-24T21:30:32.169Z)
yes, so great it would be a pleasure to contribute :) the proposal doesn't want, by no means, to break the compability with the present syntax and/or semantics of the switch. At most, should be considered as an extension of current syntax with a consequential new semantics. the swith, as it is known, should anyhow be written as ```js switch (...) { case ...: ...; break; case ...: ...; break; case ...: ...; case ...: ...; break; otherwise: ... } ``` but, it could be handy to write the same thing with a slightly different syntax: ```js switch (...) break { case ...: ...; case ...: ...; case ...: ...; continue; case ...: ...; otherwise: ... } ``` Some break less, no new keyword, no incompatibility with past. Who shall use it, will know from the start that here, the continue will not lead him at the beginning of the first for or while that englobe the switch, but only at the following case. Then, willingly, we could also think that normal switch be desugared in ```js switch (...) continue { case ...: ...; break; case ...: ...; break; case ...: ...; case ...: ...; break; otherwise: ... } ``` with break and continue (except that between ')' and '{' ) that, obviously, continue as before. This isn't a must, it's just for my pleasure in finding regularity. At last, if we were to look for the burden of a new keyword, even better ```js select (...) { case ...: ...; case ...: ...; case ...: ...; continue; case ...: ...; otherwise: ... } ``` but I realize this could be a break point of the existing code and, onestly speaking, it is beyond my ability to evaluate.