- From: Anne van Kesteren <notifications@github.com>
- Date: Wed, 06 Dec 2017 02:59:54 -0800
- To: heycam/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 6 December 2017 11:00:16 UTC
The main drawback I see with explicit getters/setters as suggested in #485 is that we can no longer use the attribute name to also serve as an internal slot (if needed). In particular, with ``` readonly attribute boolean bodyUsed; ``` you could let IDL take care of ensuring there is an [[bodyUsed]] internal slot and also let IDL take care of defining that the getter returns that (you need to allow for the default to be overridden, but useful defaults are nice). But perhaps it's not so bad to have to list both [[bodyUsed]] and getter in IDL and be a little more verbose. Not sure. Opened this as a new issue to not distract from the main goal of making all things JavaScript-y, which I've been a long time supporter of. -- 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/issues/488
Received on Wednesday, 6 December 2017 11:00:16 UTC