[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: In praise of 'nil' (Was: Proposal for table length operator
- From: Wesley Smith <wesley.hoke@...>
- Date: Wed, 15 Dec 2010 00:21:07 -0800
> print(table.pack((function()return end)()).n) -- 0
> print(table.pack((function()return nil end)()).n) -- 1
> print(table.pack((function()return nil, nil end)()).n) -- 2
>
> If 'nil' was to really be indistinguishable from "non-existent", all three
> would have to print '0'.
more like a "known unknown". black matter perhaps. it's there but it
can't be inspected :)