News for hackers. Stuff that matters.
Re:Tessel: The end of web development as we know it by panic on Monday September 30, 2013 @04:20AM (#6468360)
It's the same in JavaScript:

   x = 5; // global
   var x = 5; // local
Lua just replaces var with local:

   x = 5  -- global
   local x = 5  -- local
Re:Tessel: The end of web development as we know it by icambron on Monday September 30, 2013 @04:55AM (#6468465)
"JavaScript Done Right" requires actually doing it right.
Re:Tessel: The end of web development as we know it by riquito on Monday September 30, 2013 @04:37AM (#6468413)
Whatever javascript does, it does not make Lua's default global variables look any better
Re:Tessel: The end of web development as we know it by nilkn on Monday September 30, 2013 @09:37AM (#6469515)
To be fair, using 'local' instead of 'var' does make the situation a lot clearer.
Re:Tessel: The end of web development as we know it by woah on Monday September 30, 2013 @11:18AM (#6470052)
'Use strict';
Re:Tessel: The end of web development as we know it by catwell on Wednesday October 02, 2013 @05:19AM (#6481448)
This is actually what we do in Lua, often written `require "pl.strict"`...