W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2006

[whatwg] getElementsByClassName()

From: Joao Eiras <joao.eiras@gmail.com>
Date: Tue, 24 Oct 2006 01:26:56 +0100
Message-ID: <op.thwgu6zyxl3at9@dragast>
Na , Ian Hickson <ian at hixie.ch> escreveu:

> On Tue, 24 Oct 2006, Joao Eiras wrote:
>>
>> The question is.. is there really the need for the array ? Most bindings
>> support variable arguments.
>
> The initial proposal used varargs, but people pointed out that that made
> it difficult to call the method with an arbitrary number of arguments,
> which is why it now takes an array.
>

Ok then, but there could be that option for both Java's and ecmascript's  
bindings.
Instantiating an array adds bloat to the code and inefficiency. So this  
would be something to keep.
Received on Monday, 23 October 2006 17:26:56 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:49 UTC