For simplicity we'll probably require that all loops be Onymous to start, but in the future we could make it so that only broken loops are required to be Onymous.
Naming could be automated by using the name of the variable in the loop (iFor, jFor, fooFor). Minifiers could remove it when not used, of course.
Bad Example
for (let y of yyyy) {
for (let x of xxxx) {
if (y[x]) {
break; // SYNTAX ERROR!!
}
}
}
Good Example
yloop: for (let y of yyyy) {
xloop: for (let x of xxxx) {
if (y[x]) {
break xloop;
}
}
}
For simplicity we'll probably require that all loops be Onymous to start, but in the future we could make it so that only broken loops are required to be Onymous.
Naming could be automated by using the name of the variable in the loop (
iFor
,jFor
,fooFor
). Minifiers could remove it when not used, of course.Bad Example
Good Example