Re: [heycam/webidl] [wip] First pass at adding internal slots (#495)

Another possible idea, similar to Domenic's above: slots are generally declared separately, but there is a special construct to declare a slot and a attribute for it together, e.g.:

```
interface CustomEvent {
  readonly attribute any [[detail]];
}
```

The idea here would be that the public attribute name is derived from the internal slot name, rather than the other way around. This would be somewhat analogous to certain possible JS decorator idioms (e.g., `@reader #detail;`).

Anyway, seems like this will take more discussion, and it'd be worth landing the part about `this` separately.

-- 
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/495#issuecomment-446911172

Received on Thursday, 13 December 2018 10:04:18 UTC