Nov 16 meeting notes
David Herman
dherman at mozilla.com
Wed Nov 23 10:17:47 PST 2011
On Nov 18, 2011, at 2:00 AM, Peter van der Zee wrote:
> On Thu, Nov 17, 2011 at 10:02 PM, Brendan Eich <brendan at mozilla.com> wrote:
>> On Nov 17, 2011, at 11:26 AM, Dean Landolt wrote:
>>
>>> Who can resist such a juicy bikeshed...
>
> Please keep the general js api consistent.
A foolish consistency...
We also use 'hasOwnProperty' and 'forEach' and 'toLocaleString' in JS. Why not use those names? Because it's not the same operation. Neither is it the same thing as .length. An array is a sequential data structure, so it uses .length. A map and a set is not a sequential data structure, so it should not.
Dave
More information about the es-discuss
mailing list