W3C home > Mailing lists > Public > public-script-coord@w3.org > October to December 2010

Re: Removal of identifierless getters, setters, etc.

From: Sam Weinig <weinig@apple.com>
Date: Tue, 12 Oct 2010 16:08:19 -0700
Cc: public-script-coord@w3.org
Message-Id: <88073545-7A09-42CB-AD5C-4268B2A76919@apple.com>
To: Cameron McCormack <cam@mcc.id.au>

On Oct 12, 2010, at 2:24 PM, Cameron McCormack wrote:

> At TPAC last year, there was a discussion on Web IDL that resulted in a
> resolution to remove special operations (getters, setters, etc.) that
> have no identifier:
> 
>  http://www.w3.org/2009/11/02-webapps-minutes.html#item06
> 
> I don’t see any rationale there, so I wonder if anyone who was there
> could explain?

I believe the rationale was that it would make it prohibitively hard to implement these in languages that lack generic syntax for these actions.

> 
> HTML5 currently uses a number of these, specifically:
> 
>  DOMStringMap - name getter, setter, creator & deleter
>  HTMLDocument - name getter
>  Window - name getter, index getter
>  TimedTrackCueList - index getter
>  CanvasPixelArray - index getter, index setter
> 
> Would the idea here be to given all of these an identifier but to
> declare them as omittable (so that in JS real method wouldn’t exist on
> these objects anyway)?

Yeah.

- Sam
Received on Tuesday, 12 October 2010 23:08:52 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:03 UTC