Save Object.observe()! (please) + make WeakMap/WeakSet observable.
brendan.eich at gmail.com
Thu Nov 5 20:09:05 UTC 2015
1. "pretend all object's are really just proxies to whatever their internal
backing might be."
2. "without a baked in ability to intercede."
3. "What this does is give you something VERY close to a built in
observable Model type on top of plain objects."
These are not consistent statements. Either plain objects with nothing on
top or underneath support synchronous intercession, or they do not. TC39
for reasons Tom Van Cutsem listed has decided "not". Implementors agree.
On Thu, Nov 5, 2015 at 10:12 AM Matthew Robb <matthewwrobb at gmail.com> wrote:
> On Thu, Nov 5, 2015 at 12:49 PM, Tom Van Cutsem <tomvc.be at gmail.com>
>> O.o is a much safer alternative to Proxy.startTrapping and covers at
>> least part of its use cases.
> Okay so pretend all object's are really just proxies to whatever their
> internal backing might be. In this scenario perhaps what we might want is
> `Proxy.observeTraps` which should work just like Object.observe only
> synchronously and without a baked in ability to intercede. One could,
> however, respond to a set operation by resetting the old value. What this
> does is give you something VERY close to a built in observable Model type
> on top of plain objects.
> - Matthew Robb
> es-discuss mailing list
> es-discuss at mozilla.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss