Re: [heycam/webidl] Provide a concise syntax to create IDL dictionaries from prose (#142)

Since 26aa8308, the spec has:

> An ordered map with string keys can be implicitly treated as a dictionary value of a specific dictionary D if all of its entries correspond to dictionary members, in the correct order and with the correct types, and with appropriate entries for any required dictionary members.

which means you can use the following syntax from [Infra](https://infra.spec.whatwg.org/#ordered-map):

> «[ "name" → "bluetooth", "filters" → _var-from-prose_, "optionalServices" → _other-var-from-prose_ ]».

I think that's short enough that we don't need another syntax.

-- 
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/issues/142#issuecomment-523838364

Received on Thursday, 22 August 2019 10:04:32 UTC