[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Nil and false in Lua design
- From: Philippe Lhoste <PhiLho@...>
- Date: Mon, 14 Oct 2013 16:35:02 +0200
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
-- -- -- -- -- -- -- -- -- -- -- -- -- --