Re: [heycam/webidl] undefined can't be a member of a union type (#962)

I think it makes sense for `undefined` to be nullable. We don't want to perpetuate null and undefined being the same.

(It might make even more sense if `T?` became a shorthand for `T or null or undefined`. I had completely forgotten undefined satisfied `T?` (at least on the input side; the other annoyance (but also nice sometimes) with IDL is it conflating inputs and outputs).)

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

Received on Saturday, 13 March 2021 06:49:09 UTC