[whatwg] getElementsByClassName()

Joao Eiras joao.eiras at gmail.com
Mon Oct 23 17:26:56 PDT 2006


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.



More information about the whatwg mailing list