W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2014

Re: Exposing constructors of readonly interfaces to web authors

From: Brendan Eich <brendan@secure.meer.net>
Date: Sat, 28 Jun 2014 14:43:07 +0100
Message-ID: <53AEC66B.70201@secure.meer.net>
To: Dirk Schulze <dschulze@adobe.com>
CC: Anne van Kesteren <annevk@annevk.nl>, Domenic Denicola <domenic@domenicdenicola.com>, Rik Cabanier <cabanier@gmail.com>, "public-script-coord@w3.org" <public-script-coord@w3.org>
Dirk Schulze wrote:
> DOMQuad is a new interface and indeed part of general layout efforts that give authors more control and information over layout with JS. With the described behavior, a live object is reasonable IMO.

This side of the discussion still seems to be missing the shared getters 
in prototype point, which is important. The (correct, compared to Rik's 
-- thanks!) JS you sketched using Object.defineProperty makes getters 
*per instance*, with fresh getter function suites per instance -- and 
this is observable via ES5 introspection APIs. It's also way too costly 
for implementors to tolerate.

/be
Received on Saturday, 28 June 2014 13:43:46 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:22 UTC