by tikhonj · 14y ago · 0 comments
Though I generally agree, that's as long as you mandate linting. JS's implicit globals are even worse than Python's implicit scoping.
On the other hand, you can work around that particularly stupidity just by being careful. Working around the Python limitations requires either something hacky like using a one-element list instead of a variable or (only in 3, I think) a rather ugly "nonlocal" statement at the top of your scope.
http://mail.python.org/pipermail/python-3000/2006-October/00...