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

The reason to not require them all to be explicit is that *literally almost every single attribute* needs a slot.  Almost every attribute is a getter/setter pair that manipulates the internal slot; the only exceptions are the rare "weird" attributes that map to more complicated stuff like `.innerHTML`. Requiring editors to write identical boilerplate for 95+% of attributes is absolutely backwards.

(And in the implicit-slot world, `[NoSlot]` isn't even a behavioral difference, just a hint to the implementor that the spec's algorithms will never manipulate the corresponding internal slot, so it can be elided from the internal representation entirely.)

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

Received on Wednesday, 12 December 2018 17:19:10 UTC