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

Reply via email to