Re: [heycam/webidl] Declaring modules in WebIDL (#592)

It seems like a goal of the design is to allow reuse of names between globals and modules. But, I don't think the current draft PR has this quite figured out. In particular, consider the situation

```webidl
module "std:dom2" {
  interface Node { };

  interface Foo {
    void op(Node n);
  };
 
  interface Bar : Node {};

  interface mixin Baz;
  Node includes Baz;
};

module "std:dom3" {
  interface Node {};
};
```

In these situations, which `Node` is being referred to in the various usage sites?

It seems like there's a lot of assumptions currently baked in to Web IDL about there being one global name table :-/. Probably we'd start needing notions of "fully qualfied name" (like `"std:dom2"/Node` or something).

-- 
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/592#issuecomment-469760080

Received on Tuesday, 5 March 2019 16:55:04 UTC