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

No, we want to make `foo({ target: null })` throw, and `foo({ target: undefined })` or `foo({ })` work. Thus we want to **discourage**

```webidl
dictionary Foo {
  EventTarget? target = null;
};
```

in favor of

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

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

Received on Tuesday, 20 September 2016 09:56:46 UTC