Giacomo Cau (2014-02-09T09:41:40.000Z)
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140209/a5a820af/attachment.html>
domenic at domenicdenicola.com (2014-02-10T22:38:39.125Z)
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 { ... }