Re: [heycam/webidl] Clarify nullable types for constants (#447)

TimothyGu commented on this pull request.



> @@ -5508,8 +5513,8 @@ the string “OrNull”.
     is written as <code class="idl">boolean?</code>:
 
     <pre highlight="webidl">
-        interface MyConstants {
-          const boolean? ARE_WE_THERE_YET = false;
+        interface NetworkFetcher {
+          void get(optional boolean? areWeThereYet = false);

This example is used to illustrate how nullable types work, not how constants work. Plus, https://github.com/heycam/webidl/issues/446#issuecomment-331388615.

-- 
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/447#discussion_r140607143

Received on Friday, 22 September 2017 22:12:08 UTC