4 ms·
It's not the same point: you would never have to explicitly tell the interpreter where the variable is (global, local or nonlocal). If you required all variable
by m0th87 16y ago
It's not the same point: you would never have to explicitly tell the interpreter where the variable is (global, local or nonlocal). If you required all variable declarations to use var, the interpreter could automatically determine the scope of the variable when it is referenced or updated. This is cleaner IMO.