Re: URLQuery / FormData

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