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

> So we agree that this would only be for custom slots, right? i.e. the following snippet would have both a [[secret]] and a [[name]] slot, right?

Yes, exactly.  I just want all the information that's meant to be attached to an object to be together in its IDL definition; it makes the shape of the object much more obvious.

> So I'm not really sure whether initial values are useful or not. But if we think so, then the idea would be to add them to both slots and attributes:

Okay, but I don't think either should have it. As I said before, the only things you can set in WebIDL syntax are IDL primitives, and it's not all that common for the value of slots (custom or attr-based) to be primitives.

-- 
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-350897190

Received on Monday, 11 December 2017 23:51:24 UTC