garykac / procspec

Writing Procedural Specs (for the Web Platform, using Bikeshed)
https://garykac.github.io/procspec/
0 stars 1 forks source link

Define internal slots as attributes #3

Open garykac opened 7 years ago

garykac commented 7 years ago

From Tab: A reasonably common practice, which Bikeshed explicitly deals with, is to define this as an attribute, but with [[foo]] naming - double square brackets. This groups it with the IDL definitions in indexes, and you can ref it with the IDL linking syntax, like {{[[foo]]}}.

This also explicitly associates the private slot with the interface, which is exactly what it's actually doing.