[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: NaN (was: Re: The Undefined Country (was Re: Quest: real world "Lua array with holes" usage))
- From: steve donovan <steve.j.donovan@...>
- Date: Mon, 25 Jul 2016 09:03:38 +0200
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 ;)