- From: Philip Jägenstedt <notifications@github.com>
- Date: Tue, 20 Sep 2016 02:32:34 -0700
- To: heycam/webidl <webidl@noreply.github.com>
Received on Tuesday, 20 September 2016 09:33:03 UTC
I'm not suggesting that null be treated as missing for dictionary members, not even for interface types, but I do wonder if WebIDL can do more to help spec writers figure out when to use the above `dictionary Foo` as opposed to this: ```WebIDL dictionary Foo { EventTarget? target = null; }; ``` I looked in Blink for optional, non-nullable members of interface type, and the only two cases were mistakes: https://github.com/WebAudio/web-audio-api/issues/980 https://github.com/WebAudio/web-audio-api/issues/985 So, I'm tentatively arguing that for dictionary members of interface type, they must nullable if optional and not nullable if required, and wonder if that's overlooking something. -- 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/176#issuecomment-248251654
Received on Tuesday, 20 September 2016 09:33:03 UTC