- From: Tobie Langel <notifications@github.com>
- Date: Fri, 14 Oct 2016 09:28:45 -0700
- To: heycam/webidl <webidl@noreply.github.com>
- Message-ID: <heycam/webidl/pull/180/c253851644@github.com>
Trying to recap here. Seems we have agreement on: * difference between dictionaries, record and half-open-records ([quoting](#issuecomment-251471612) @annevk): * **Dictionaries:** map constrained by specific key members and corresponding value types * **Records** (open dictionaries): map constrained by key type and value type * **Dictionary-based records** (Half-open dictionaries): map constrained by key type, fallback value type, and specific value type for specific key members. * syntax: ```webidl record<StringType, Type>; // open-ended dictionaries record<DictionaryType, StringType, Type>; // half-open ``` * high-level behavior (hit the prototype chain for dictionary members, use `spread` for record mappings). Still on the todo list: - review and merge @jyasskin's PR to simplify the distinguishability table (#183), - decide whether we need to tackle half-open dictionaries as part of this PR or if we can defer, - figure out how to properly name half-open dictionaries, - anything else? -- 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-253851644
Received on Friday, 14 October 2016 16:29:15 UTC