[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Bloat or no bloat? (Was: [Feature request])
- From: Dirk Laurie <dirk.laurie@...>
- Date: Sun, 21 Sep 2014 16:54:24 +0200
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?