On Nov 18, 2011, at 2:00 AM, Peter van der Zee wrote: > On Thu, Nov 17, 2011 at 10:02 PM, Brendan Eich <bren...@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 _______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss