Re: [heycam/webidl] What is "type name" used for? (#835)

@annevk It’s probably also worth factoring out it’s confusing that type names aren’t guaranteed to be unique. In that algorithm it’s safe to rely on the names because you wouldn’t enter it in the first place unless type type in question were a real typed array type, but it’s still super weird that we can create other types with (e.g.) the type name _Int8Array_ by other means:

1. Escape an interface name:

```
interface _Int8Array {};
```

2. Frozen array shenanigans:

```
interface Int8 {};
typedef FrozenArray<Int8> lol;
```

-- 
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/835#issuecomment-578286159

Received on Friday, 24 January 2020 20:21:01 UTC