Re: Specs and Object.observe()

Le 17/06/2013 21:57, Domenic Denicola a écrit :
> What would change notifications look like for a Map, say? My impression of change notifications was that they usually applied to properties, not to general internal mutable state.
People will ask for it eventually. That's the course of things. 
Initially, we had object and properties "Java-style" (objects = 
properties + methods) and then people asked for events on mutable state.
We had Java-style (properties+methods) DOM and people asked for events 
to observe DOM mutations. It seems like an inevitable thing. If change 
notifications for Map don't go through Object.observe, people will ask 
it in some other form. There seems to be a need to be notified of 
changes anytime there is mutable data.

And our Smalltalk/Java cultural legacy when it comes defining object 
interfaces seem to always make us forget events from interfaces when we 
first design them.

David

Received on Monday, 17 June 2013 20:52:01 UTC