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

Re: undefined values in dictionaries

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 12 Jun 2013 00:20:58 -0700
Message-ID: <CAAWBYDAVRbOtE12u6s-sC5y8Bev+-jsDaiR8HWwrWNnrG=WUDg@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: Jonas Sicking <jonas@sicking.cc>, "public-script-coord@w3.org" <public-script-coord@w3.org>
On Tue, Jun 11, 2013 at 7:21 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
>> This aligns with how dictionary handling is handled by ES6.
> I'd love to read up more on this.  Where in ES6 are there dictionaries?

Look at argument destructuring, which can destructure objects, or just
plain optional arguments in ES6.  Passing explicit undefined is
equivalent to not passing the argument at all, which is intentional to
allow easy "argument forwarding" without a combinatorial explosion of
calling patterns.

Received on Wednesday, 12 June 2013 07:21:45 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:13 UTC