W3C home > Mailing lists > Public > public-script-coord@w3.org > July to September 2013

Re: URLQuery / FormData

From: Anne van Kesteren <annevk@annevk.nl>
Date: Mon, 9 Sep 2013 22:23:44 +0100
Message-ID: <CADnb78gkG72Xiq9a=r+2+fDvCVdH7YYjNp-8=NZm+zrJ+WUrtg@mail.gmail.com>
To: Jonas Sicking <jonas@sicking.cc>
Cc: "public-script-coord@w3.org" <public-script-coord@w3.org>
On Mon, Sep 9, 2013 at 9:59 PM, Jonas Sicking <jonas@sicking.cc> wrote:
> On Mon, Sep 9, 2013 at 1:30 PM, Anne van Kesteren <annevk@annevk.nl> wrote:
>> * get(name) -- always returns an array, with ES6 destructering this
>> should be fine
>
> This seems like optimizing for the rare case.

Given

  [value] = obj.get(name)

how is that a problem?

What alternative API would you propose?


>> I'll leave out set() for now.
>
> This also seems like optimizing for the rare case.

What semantics would you propose?


-- 
http://annevankesteren.nl/
Received on Monday, 9 September 2013 21:24:11 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:37:50 UTC