Re: [heycam/webidl] void -> undefined, and allow it anywhere. (#906)

Same deal there - we literally can't restrict `undefined` in those ways if we want to allow it in unions *at all*, because it'll suddenly make webidl require infinite lookahead, rather than the finite (single-token, in fact) lookahead it currently uses.

We'd need to introduce a whole new syntax construct that immediately distinguishes "unions that allow undefined" from "unions without undefined".

-- 
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/pull/906#issuecomment-670723671

Received on Friday, 7 August 2020 21:40:10 UTC