Re: [heycam/webidl] add a type to represent the undefined value (#60)

Looking at #905, now I vote for `undefined`:

1. It should be less weird if it's together with other operations:

   ```webidl
   undefined foo(); // it's surely a return type, right?
   float bar();
   ```

2. `undefined foo(DOMString bar = undefined)` is probably more intuitive than `void foo(DOMString bar = void)`, especially when it clearly shows passing `undefined` value is same as passing nothing.

-- 
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/60#issuecomment-668665027

Received on Tuesday, 4 August 2020 15:29:20 UTC