lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


The presence of nil (and only nil) keeps things simple.  For the Perl programmers out there, the following will look familiar:

if (!defined $hash{'foo'})

is not the same as
if(!$hash{'foo'})

The difference between the above is lost in Lua.  As Lua keeps things rather simple, I'd prefer we keep it that way.  Luckily, Lua only has the concept of nil, and not both null and undefined like in _javascript_ or Perl.




--
Brandon Zeeb