Re: [heycam/webidl] Investigate banning nullable enums (#213)

> Null is just as falsy though, so if you want to avoid that you should do something else.

Well, all of this is pretty subjective anyway. The point I was trying to make is that replacing `null` by `""` isn't an improvement from a JS dev perspective. I'd even argue it's worse. So (still from a JS dev's perspective—as I said earlier, there might be other sound reasons to choose differently), my suggestion would be to keep nullable enums (if those are needed) but to disallow empty strings in enums.

-- 
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/213#issuecomment-288015393

Received on Tuesday, 21 March 2017 09:01:04 UTC