Re: [heycam/webidl] Specify open dictionaries. (#180)

> Sure, but my point is that we could have a pass-by-value "ordered key-value store" thing whose ES representation is a Map object. The only reason not to do that is presumably ergonomics.

Sorry, yes, it's only not a `Map` because it's easier to enter and read a plain JS object.

We could allow a `Map` IDL argument to be initialized from a plain JS object when the key type is appropriate. However, that would be worse for Web Bluetooth's use case until we add an algorithm for allowing non-string keys, because I'd have to write `Map<DOMString, DataFilter>` instead of `Map<unsigned short, DataFilter>`.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/pull/180#issuecomment-251448697

Received on Tuesday, 4 October 2016 17:02:36 UTC