W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2010

Re: A URL API

From: Garrett Smith <dhtmlkitchen@gmail.com>
Date: Tue, 21 Sep 2010 01:05:06 -0700
Message-ID: <AANLkTi=bfYCZL6QZ6bv-VRR94pi7HhfBAU3BS7KUQwYp@mail.gmail.com>
To: Ojan Vafai <ojan@chromium.org>
Cc: Adam Barth <w3c@adambarth.com>, Devdatta Akhawe <dev.akhawe@gmail.com>, Darin Fisher <darin@chromium.org>, Julian Reschke <julian.reschke@gmx.de>, WebApps WG <public-webapps@w3.org>
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:40 GMT