Re: [heycam/webidl] Add [InNamespace] to allow defining an interface in a namespace (#425)

The main issue for me is that this would disallow the following fragment since the interface name is the same (or at least I think, I cannot find the clause that disallows this but it seems reasonably logical):

```webidl
[Exposed=Window]
interface Foo {};

[Exposed=Window]
namespace bar {};
[InNamespace=bar]
interface Foo {};
```

... and namespacing was kind of the point of namespaces.

On the other hand, even if we do allow that, it can be difficult (for a human) to immediately recognize `Foo` was not indeed exposed globally but through a namespace.

I agree that a syntax change can cause churn, no doubt about that, but I still believe it's the best way forward.

-- 
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/425#issuecomment-324791752

Received on Friday, 25 August 2017 00:22:58 UTC