Re: Re: Experimental implementation of Object.observe & JS Utility library now available

2012-08-22 Thread Brandon Benvie
I would say it is most definitely not the concern of Observe to watch reads and between accessors and Proxies we have all the tools we need for that. With the ability to keep present on notifications of changes via observe it's actually possible to implement a mirror that can be emit change events

Re: Re: Experimental implementation of Object.observe & JS Utility library now available

2012-08-22 Thread Rafael Weinstein
Hi Steve, Thanks for joining the conversation. =-) The automatic dependency discovery that Knockout does is rather cool. My sense has been that Proxy is a better tool for this job than is expanding the semantics of Object.observe() to include reads. Object.observe() only operates on objects whic

Re: Experimental implementation of Object.observe & JS Utility library now available

2012-08-22 Thread Rick Waldron
On Wednesday, August 22, 2012 at 6:34 AM, Steve Sanderson wrote: > This is fantastic - thanks for pushing this forwards, Rafael! > > For context, I'm part of the knockout.js (a JavaScript MV* library) team, so > I have some interest in how this could work out. This spec has a lot of > potenti

Re: On revoking access to the target of a proxy

2012-08-22 Thread David Bruant
Le 21/08/2012 17:41, Tom Van Cutsem a écrit : (sorry for the slow reply, catching up on e-mail) So the old fix() trap is back with a vengeance, it seems! It's a very different form, but I see the analogy. To answer Mark's question of what other downsides there are to dropping the target: 1) i

Re: Re: Experimental implementation of Object.observe & JS Utility library now available

2012-08-22 Thread Steve Sanderson
This is fantastic - thanks for pushing this forwards, Rafael! For context, I'm part of the knockout.js (a JavaScript MV* library) team, so I have some interest in how this could work out. This spec has a lot of potential to make MVC-style coding far simpler and more robust, both for framework deve