Re: [heycam/webidl] Designing mixins (#363)

> (And yeah, I don't think we want centralized definitions. Pretty sure we use all flexibility provided by the current system.)

Well, they wouldn't need to be centralized, they just wouldn't have their own identifier. So instead of having `mixin WindowOrWorkerGlobalScope { };` in HTML and then having multiple specs do:

```webidl
partial mixin WindowOrWorkerGlobalScope { };
```
You wouldn't have the `WindowOrWorkerGlobalScope` mixin at all and would just have multiple specs doing:

```webidl
partial interface Window, WorkerGlobalScope { };
```
It's conceptually simpler than learning a new IDL concept, and makes things a lot more explicit. But it implies a bit more churn to move to and you loose the ability to suddenly expend `WindowOrWorkerGlobalScope` to also be included e.g. in `Worklets`.

-- 
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/363#issuecomment-326728887

Received on Saturday, 2 September 2017 07:47:41 UTC