[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RE: lists with nil play nice for Lua 5.2
- From: Patrick Donnelly <batrick@...>
- Date: Tue, 31 Jul 2007 12:59:24 -0600
> Norman Ramsey wrote:
> > Perhaps Lua 5.2 can address the policy disorder by
> > providing a value 'table.hole' whose sole purpose is to be distinct
> > from every other value (including nil) :-)
> This makes the most sense to me out of any of the other solutions.
I agree; I like this solution a lot. However, I see value for this type of object outside of tables. I think nil is often used in places where it was not intended.
"One of the lessons of history is that nothing is often a good thing to do and always a clever thing to say."