4 ms·
I really wish JavaScript had goto statements, because it would make it less of a hassle to make code generators that target it. Before the new block scoping co
by kmill 9y ago
I really wish JavaScript had goto statements, because it would make it less of a hassle to make code generators that target it.
Before the new block scoping constructs (which I assume would make implementing goto more complicated), was there anything preventing JavaScript from having gotos, other than an authoritarian "we know better than you"?
At least JavaScript has labeled blocks that you can break out of!