- From: Anne van Kesteren <notifications@github.com>
- Date: Mon, 03 Aug 2020 22:58:18 -0700
- To: heycam/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 4 August 2020 05:58:31 UTC
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