Re: [whatwg/webidl] Normative: Rename integer types to match ECMAScript typed arrays (#1030)

@bathos commented on this pull request.



>  represented with <emu-t class="regex"><a href="#prod-integer">integer</a></emu-t>
 tokens.
 
 The [=type name=] of the
-{{unsigned short}} type is "<code>UnsignedShort</code>".
+{{uint16}} type is "<code>Uint16</code>".
+
+For legacy compatibility, <code>unsigned short</code> is to be treated
+as an alias for {{uint16}}, similar to:
+
+<pre>
+    typedef (uint16) unsigned short;

The “similar to” phrasing may have intended to acknowledge that — but it still seems confusing to have pseudo-idl in the idl spec itself (not very friendly for folks not already familiar enough to know it’s not meant to be valid).

Given the original productions are still explicitly part of the grammar in this PR, I don’t think this framing is needed anyway.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/pull/1030#discussion_r744201916

Received on Sunday, 7 November 2021 04:46:57 UTC