[heycam/webidl] Getting rid of optional (#905)

If we do #60, should we get rid of optional and instead use defaulting as sole mechanism?
```
  [NewObject] Document createHTMLDocument(optional DOMString title);
```
would become
```
  [NewObject] Document createHTMLDocument(DOMString title = void);
```
and
```
  void observe(Node target, optional MutationObserverInit options = {});
```
would become
```
  void observe(Node target, MutationObserverInit options = {});
```
(And if you need to distinguish between not given and undefined you use overloading, as XMLHttpRequest does for `open()`.)

cc @saschanaz @tabatkins 

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

Received on Tuesday, 4 August 2020 05:58:31 UTC