- From: Olli Pettay <olli@pettay.fi>
- Date: Wed, 20 Aug 2014 12:15:50 +0300
- To: Anne van Kesteren <annevk@annevk.nl>, Jonas Sicking <jonas@sicking.cc>
- Cc: WHAT Working Group <whatwg@lists.whatwg.org>, Mounir Lamouri <mounir@lamouri.fr>, Marcos Caceres <w3c@marcosc.com>
On 08/20/2014 11:33 AM, Anne van Kesteren wrote: > On Wed, Aug 20, 2014 at 10:29 AM, Jonas Sicking <jonas@sicking.cc> wrote: >> FWIW, the web platform sorely needs a construct for "readonly state >> variable + event whenever the state changes". I.e. some form of >> observable which remembers the last produced value. I had hoped the >> Streams would get us closer to that, but the current definition seems >> to be too different. > > Isn't that Object.observe() with custom records produced by the > specific object you are defining for the property you want to enable > this for (in this case held, it seems like)? > > Object.observe() + some custom records sounds rather inconsistent API. Why would one getter in some prototype be handle differently to other getters? (and it is not too clear how one would implement that.)
Received on Wednesday, 20 August 2014 09:16:31 UTC