lua-users home
lua-l archive

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




On Sunday, September 21, 2014, Dirk Laurie <dirk.laurie@gmail.com> wrote:
2014-09-21 16:49 GMT+02:00 Roberto Ierusalimschy <roberto@inf.puc-rio.br>:
>> For example, it's quite easy for a table to know exactly how many keys
>> it contains. One extra integer in the struct plus a test whether 'nil' is being
>> assigned when it's not a new index or non-nil when it is. That feature has
>> been requested on this list. It has not been implemented in core Lua.
>> There's a tradeoff on how useful it is versus what it costs, and the
>> decision went against it. Fair enough.
>
> I hope you are not spreading the myth that this feature would solve the
> conundrum of table length.

Certainly not. It solves only the set cardinality issue. How many people
have registered for the workshop when keyed by e-mail address?


[Dirk: this shows a mastery of the Art of Asking for Something. You not only give a decent use case, but tying it into the Lua Workshop? That's artful. You should take those meds all of the time. :)]

Andrew