[heycam/webidl] Syntactic changes to attributes (#488)

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