[heycam/webidl] Make null an explicit type (remove nullable types) (#866)

In #827 the idea came up that now that we have unions we could handle null in a generalized way. That is, rather than `DOMString?`, you would write `(DOMString or null)`.

I like that this adds a lot of clarity with regards to the allowed values, but I do worry a bit about the verbosity. We might want to add a typedef for `NullableDOMString` or some such.

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

Received on Friday, 27 March 2020 13:02:52 UTC