lua-users home
lua-l archive

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


On 11/10/2013 20:53, Rena wrote:
Indeed, I wonder what would be the advantage of such a system? Seems like it'd amount to
replacing a lot of "if not x" with "if x == nil".

Yes, I do that in my Lua code, because I like my tests to nil to be explicit.

I like to distinguish true booleans (used as such) from tests from absence.

--
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  --  --  --  --  --  --  --  --  --  --  --  --  --