Label statement moveable
lv2lrn4lf at gmail.com
Tue May 19 18:45:27 UTC 2015
Since we have block scope, and we have continue statement to which we can use in loops to jump back to the conduction statement part.
Than can we consider making label stamens moveable by its name.
I'll like to say that the side effect would be sudo(pseudo) function, example:
return v + 1;
var i = 0;
i += 1;
continue baz;//same as foo(i);
Stripping this privilege to black scope; where the continue statement is expanded to work only in block scope and nested block scope; to where it can only jump to the beginning of that block or any other block scope that is scoped to that outer block scope but not nested block scope with in the scope... Like function.
Continue and break statement could be of more power; where we can avoid some function call in "speed matter" application.
Excuse any grammar errors.
More information about the es-discuss