Re: [heycam/webidl] Why is a constant type nullable? (#446)

I'm guessing because we need a way to express null.

```webidl
interface MyConstants {
  const whatShouldIPutHere NULL_VALUE = null;
};
```

If the constant value is actually a boolean, then I don't see any reason why a nullable type is used.

But if no IDL fragments in the web platform actually have null-valued constants, then I guess we can remove 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/446#issuecomment-331358172

Received on Friday, 22 September 2017 06:04:09 UTC