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

Re: Using objects for a mapping argument

From: Anne van Kesteren <annevk@annevk.nl>
Date: Mon, 26 Sep 2016 09:11:47 +0200
Message-ID: <CADnb78h3bYrmOHprU7v=Uoin-vDceLvFAidrW-Mp7vvPkOFVHg@mail.gmail.com>
To: Domenic Denicola <d@domenic.me>
Cc: Jeffrey Yasskin <jyasskin@google.com>, public-script-coord <public-script-coord@w3.org>
On Sun, Sep 25, 2016 at 4:52 PM, Domenic Denicola <d@domenic.me> wrote:
> The actual [[OwnPropertyKeys]] steps look pretty reasonable, and yeah, maybe factoring them out into some kind of phrase that lets you extract things in this sort of scenario makes sense. This might tie into the discussions around OpenEndedDictionary?

Yeah, given how

  let x = { 23: "x", 45: "y" }
  x[45]
  x["23"]

works it seems this would be compatible with OpenEndedDictionary.


-- 
https://annevankesteren.nl/
Received on Monday, 26 September 2016 07:12:15 UTC

This archive was generated by hypermail 2.3.1 : Monday, 26 September 2016 07:12:16 UTC