- From: Garrett Smith <dhtmlkitchen@gmail.com>
- Date: Tue, 21 Sep 2010 01:05:06 -0700
- 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 UTC