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

Re: A URL API

From: Adam Barth <w3c@adambarth.com>
Date: Tue, 21 Sep 2010 00:52:55 -0700
Message-ID: <AANLkTindt9=cKvuJN2=+mJr-j25ce8mdgfDa+g-X2_-3@mail.gmail.com>
To: Devdatta Akhawe <dev.akhawe@gmail.com>
Cc: Ojan Vafai <ojan@chromium.org>, Darin Fisher <darin@chromium.org>, Garrett Smith <dhtmlkitchen@gmail.com>, Julian Reschke <julian.reschke@gmx.de>, WebApps WG <public-webapps@w3.org>
On Tue, Sep 21, 2010 at 12:51 AM, Devdatta Akhawe <dev.akhawe@gmail.com> wrote:
> On 21 September 2010 00:47, 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.
>
> What happens when I do
> setParameter('x','a','b','c');
>
> and now want to add another - I will have to do weird things like
> getting the parameter via getAllParameter and then append to the array
> and function.call or something like that
>
> doesn't look very nice according to me - I like the separation into 2
> APIs because I think that makes the common case of single parameter
> values clean and robust

Perhaps appendParameter("x", "a", "b", "c") ?

Adam
Received on Tuesday, 21 September 2010 07:54:09 GMT

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