lua-users home
lua-l archive

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


> This was meant to be a question about tracking the physical number of
> non-nil entries in the internal table data structure. [...]
> 
> This being the case, most of the gotchas mentioned above seem to evaporate,
> and the only reason not to do that that I can see is that it makes *ALL*
> table writes a tiny bit more expensive. [...]

Another reason not to do so is that it makes '#' mostly useless for
sequences (which are the only reason for its existence).

-- Roberto