Re: A URL API

On 9/21/10, Ojan Vafai <ojan@chromium.org> wrote:
> How about setParameter(name, value...) that takes var_args number of values?
> Alternately, it could take either a DOMString or an Array<DOMString> for the
> value. I prefer the var_args.
>
Why?

A user-defined fallback will be necessary for a while.

The downside of using varargs is that any user-defined fallback has to
resort to using the arguments object. Your alternate doesn't have that
problem.
-- 
Garrett

Received on Tuesday, 21 September 2010 08:05:42 UTC