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

1. *Please* add the actual syntax to the interface. Having them be separate is annoying both to define and to read; you have to go search for the internal slots in the surrounding prose.  It's also makes the pattern far less obvious for neophyte spec authors.  Finally, it means that Bikeshed can handle all the defining stuff for you, which makes it much easier for all spec authors, regardless of experience level.

2. I don't think we should include an initial value. First, these are just attributes that happen to not have a public getter/setter, and attributes don't have initial values defined in the IDL; second, you can only express IDL primitives in that syntax, and most slots I've seen are *not* simple primitives; they're often Infra structures and/or objects created with particular meaning that can't be expressed in WebIDL.  Since *most* slots will have to have their value defined in prose, it's more consistent to require *all* of them to do so.

3. If my (2) is accepted, then we don't need to define the initial value of a slot; we can just require that specifications define that in prose.

Otherwise +1 to this, this fulfills my desires!

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

Received on Monday, 11 December 2017 19:29:59 UTC