Nov 16 meeting notes
David Herman
dherman at mozilla.com
Wed Nov 23 10:27:50 PST 2011
On Nov 23, 2011, at 10:17 AM, David Herman wrote:
> 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...
An additional point about consistency: many scripting languages talk about the "length" of a table data structure because they actually expose the representation of a table as an array or list. IIRC Perl/PHP associative arrays, Python dicts, Lisp alists, and Ruby hashes are all transparently built from arrays or lists. But Map and Set aren't arrays, they're their own data structure. So IMO it makes sense to name their methods on their on terms, not on the terms of a different data structure.
Dave
More information about the es-discuss
mailing list