W3C home > Mailing lists > Public > spec-prod@w3.org > October to December 2018

Re: IDL micro-syntax Re: [ReSpec] release 23.2.0

From: Marcos Caceres <mcaceres@mozilla.com>
Date: Wed, 10 Oct 2018 08:34:32 +1100
Cc: "spec-prod@w3.org Prod" <spec-prod@w3.org>, Sid Vishnoi <sidvishnoi8@gmail.com>
Message-Id: <D4C2ABC2-C11E-4AAD-BE67-7A029DF063A9@mozilla.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>


> On Oct 10, 2018, at 2:51 AM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
> 
> I'm confused. The point of {{{foo["bar"]}}} was that "foo" was an
> enum, and "bar" was an enum value. Your example here doesn't link up
> an enum value at all, so I don't understand the relevance.

Sorry, I was still caught up on using `foo["bar"]` to refer to a property of an object, which is why I didn't understand the enum bit.

So, to be clear: I'll remove the ability to do {{{ Dictionary["member"] }}}, but will support {{{ Enum["enum member"] }}}.  

For example:

If {{{ window.screen.orientation.type }}} is {{{ OrientationType["landscape-primary"] }}}, then do Y.
Received on Tuesday, 9 October 2018 21:35:00 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:55:23 UTC