[[Extensible]]and Proxies (Was: Proxy.isProxy )
david.bruant at labri.fr
Sun Jul 17 15:18:37 PDT 2011
Le 15/07/2011 00:16, Brendan Eich a écrit :
> On Jul 14, 2011, at 3:00 PM, Allen Wirfs-Brock wrote:
>>> Host objects are part of the platform. A platform provider is free
>>> to violate any part of the spec they like, and there's nothing we
>>> can do about it other than to add tests to std test suites to make
>>> the violations obvious to the community.
>> We could provide a defined interface mechanism that validates
>> constraints or limits behavior in a way that guarantees the desired
>> invariants. That's what Proxies appear to be trying to do, why not do
>> it for host objects. If you can depend upon host objects actually
>> supporting your invariants why does not matter whether or not Proxy
>> objects also do so.
> For the record, Mozilla wants its "host objects" to be only as
> powerful as Proxies. Current web compatibility constraints don't allow
> this but we want to evolve the standards, de facto (over time) and de
> jure, toward that goal.
Do you have examples?
> Some Proxy extensions may be needed, too, so it's not all up to web
> compatibility to take the hit.
Do you have such Proxy extensions in mind already?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss