- From: petervanderbeken <notifications@github.com>
- Date: Mon, 15 Mar 2021 09:26:45 -0700
- To: heycam/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 15 March 2021 16:26:57 UTC
I had totally missed that writable attributes can take undefined in a union. What would be the use for undefined being nullable? I don't think that would make a lot of sense outside of unions. I like `T?` being shorthand for `T or null or undefined` (sidenote: there is no `null` type), but if that's a real union, wouldn't that make it impossible to distinguish `null` and `undefined` in a union? `T? or undefined` would be invalid, and existing APIs would expect the current conversion from ES `null`or `undefined` to IDL `null`, so it seems like we wouldn't be able to fix it on that level. -- 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/962#issuecomment-799556645
Received on Monday, 15 March 2021 16:26:57 UTC