July TC39 meeting notes, day 1
brendan at mozilla.com
Thu Jul 28 12:16:39 PDT 2011
On Jul 28, 2011, at 1:35 AM, David Bruant wrote:
> Le 28/07/2011 06:21, Brendan Eich a écrit :
>> == Handler access to proxies ==
>> Proxy handler traps need to receive the proxy as a parameter: first, or last?
>> Last allows trap implementors to leave |proxy| off. It's also a compatible extension to the proposal and its prototype implementations. Putting |proxy| last may also steer implementors away from touching proxy, reducing the bugs where you infinitely diverge.
>> First is more normal-order (proxy, name) and some find it more aesthetically pleasing.
>> Another alternative: the proxy could be "passed" via a data property on the handler.
> I think we discussed already the idea of "proxy" being passed as a data property to the handler and came to the conclusion that it may not be a good idea, because it breaks the stratification. If two proxies use the same handler as in , then, there is an ambiguity on what the value of this property should be.
The argument then (at the meeting, sorry for not recording it) is that you can always use prototypal delegation to share the shared parts of the handlers, and each delegating handler has its own proxy back-reference.
> Also, Microsoft enthousiasm toward proxies makes me happy!
> Thanks for the meeting notes!
More information about the es-discuss