Re: undefined values in dictionaries

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.

~TJ

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