[heycam/webidl] Does a non-nullable and non-required dictionary member of interface type make sense? (#176)

Context: https://github.com/WebAudio/web-audio-api/issues/980

Let's simplify:

```WebIDL
dictionary Foo {
  EventTarget target;
};
```

The only difference to making it nullable is that `{target: null}` would throw TypeError, might one want that?

Or: should WebIDL require (hah) that required dictionary members are non-nullable and that optional ones are nullable? And have a default value of null, so that omitting can't have another meaning?

(Sorry if the spec already has some requirements like this, it's big.)

-- 
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

Received on Monday, 19 September 2016 15:55:28 UTC