lua-users home
lua-l archive

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



> 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.
>
> --
> Irayo
>

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.

-Patrick Donnelly

"One of the lessons of history is that nothing is often a good thing to do and always a clever thing to say."

-Will Durant