- From: Anne van Kesteren <notifications@github.com>
- Date: Wed, 12 Dec 2018 17:29:00 +0000 (UTC)
- To: heycam/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 12 December 2018 17:29:23 UTC
I wanted attributes to be somewhat automatically backed by slots for these cases: * Defining new events. Currently we cheat for events and don't say that https://dom.spec.whatwg.org/#interface-customevent for instance also has a [[Details]] internal slot. I was hoping that making this defined could be done without any effort on specification editors. * Defining getters without prose. `CustomEvent` has a `details` getter, but all it does is returning [[Details]]. This could follow from IDL rather than requiring boilerplate. (This might also apply to setters that only do type coercion but I have a hard time coming up with an example.) * More speculative: when allocating a new platform object, attributes on that platform object backed by their own platform object could automatically have their slot filled with a platform object of that type created in a consistently-chosen Realm. (E.g., consider `document.implementation`.) I don't really want to block on this though, having shared understanding and a consistent editorial policy around private state is much more important to me. -- 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-446672750
Received on Wednesday, 12 December 2018 17:29:23 UTC