Re: [heycam/webidl] Does a non-nullable and non-required dictionary member of interface type make sense? (#176)

Yeah, I think it would be better to match the signature of the id member.

The fact is that JavaScript special cases undefined, but not null. So wherever we treat null as undefined or the empty string, rather than a disallowed value and "null", we're being inconsistent with JavaScript.

As mentioned upthread there are sometimes good reasons to allow null, but I don't think this is it.

-- 
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/176#issuecomment-248524044

Received on Wednesday, 21 September 2016 06:35:18 UTC