Nov 16 meeting notes

Brendan Eich brendan at
Thu Nov 17 13:02:04 PST 2011

On Nov 17, 2011, at 11:26 AM, Dean Landolt wrote:

> Who can resist such a juicy bikeshed...


> Just wanted to jump in and say non-writable length is consistent with String behavior as well, but David makes a good point about length implying metric topology. David's suggestion of `count` is nice. ISTM what we're talking about is `cardinality`, but no need to get too silly w/ precision. Though `size` is just fine with me, and has plenty of prior art. 

No one wanted anything as long as card... There was a large cohort in favor of count, I thought. Some were ok with size.

> Whatever name is chosen I'd prefer it be something other than `length`, and for it to also exist on Array.prototype as a read-only property returning this.length. This way this new property becomes the new `length` for every "compound" type, whether it be an object, array, string, map, set, etc. And `length` would remain for all sequence (numerically-indexed) types.

Agreed emphatically.

I like count best at the moment.


More information about the es-discuss mailing list