[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Nil and false in Lua design
- From: Alexander Gladysh <agladysh@...>
- Date: Fri, 11 Oct 2013 22:38:47 +0400
Hi, list!
As we all know and learned to love, in Lua nil and false are false,
and everything else is not.
I vaguely remember reading years ago that this is so for historical
reasons (Lua prior to 5.0 didn't have false), and if the language was
designed from scratch as it is now, it would be different in this
matter. (I think that this was said by someone from the Lua Team.)
But I can't google up where did I read it...
Does anyone else remember such reference?
Thanks,
Alexander.