[whatwg/webidl] Remove the concept of 'type name'. Closes #835 (PR #1132)

Per #835, the "type name" concept is no longer actively used by the specification. It was originally introduced in <https://github.com/whatwg/webidl/commit/8e66595d495b40d05c9926fbd01b0fa0be5ecb6a>, where it was necessary to create a author-observable name for the Array subclasses created by the `T[]` syntax, but that syntax is dead. We've been keeping carrying the concept forward out of inertia since then.

The only remaining usage of it (besides all the places where types define their type name) was in the algo for converting ES values to the IDL buffer source types; it's used solely to verify that the ES value is of the same-named type as the IDL type it's being converted to. Since the "type name" of the buffer source types was just defined as "the name of the type itself", I inlined that language into the algo instead. (This technically makes it more correct, too - the algo implies it can be called on annotated buffer source types, but the intro text only mentions the buffer source types themselves and says nothing about annotations. Now no mention is made of annotated types at all, which matches all the other similar algos.)
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/webidl/pull/1132

-- Commit Summary --

  * Remove the concept of 'type name'. Closes #835

-- File Changes --

    M index.bs (142)

-- Patch Links --

https://github.com/whatwg/webidl/pull/1132.patch
https://github.com/whatwg/webidl/pull/1132.diff

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

Message ID: <whatwg/webidl/pull/1132@github.com>

Received on Thursday, 28 April 2022 22:18:09 UTC