2 ms·
> With no variable declaration keyword (a la var, my, local, private), adding a variable assignment anywhere could radically change the variable scoping. > I'
by mikewhy 13y ago
> With no variable declaration keyword (a la var, my, local, private), adding a variable assignment anywhere could radically change the variable scoping.
> I'm done, this isn't suitable for prime-time, time to go somewhere else.
So does that mean Python and Ruby are out the window too? It's really never been an issue in either of the three languages.
- jkrems 13y agoThe problem in Python and Ruby is less obvious because you rarely have big, nested closures. In JavaScript those are pretty common (module pattern, mocha test suites, etc.).