lua-users home
lua-l archive

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


On Mon, Jul 25, 2016 at 2:26 AM, Soni L. <fakedme@gmail.com> wrote:
> This is why we need NaN to be a falsey value. It shares many properties with
> nil:

Part of me really likes this idea (although I don't know what
performance implications there might be).

The other part worries about the falsey set going from [nil,false] to
[nil,false,NaN].  Three is significantly larger than two in concept
space. At least nobody has every suggested that empty strings and
tables should be considered falsey ;)