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

I've observed accidental exposure of public APIs in early draft specifications due to the lack of this feature as well.

What was the motivation for creating all of these implicit slots, and then needing a `[NoSlot]` extended attribute? How about we just make all these slots explicit?

As for type system, I like the idea of keeping these internal slots untyped (matches current usage). Could we make the ECMAScript undefined value the default (matching current usage), or would this be too big of a layering violation given how we don't have `undefined` in WebIDL yet?

Minor: ECMAScript switched to internal slots all starting with a capital letter. Now, lower case internal slot names look ugly to me. I'm fine with using lowercase if others prefer it, though.

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

Received on Wednesday, 12 December 2018 17:11:28 UTC