Re: David’s ProxyMap
andrea.giammarchi at gmail.com
Wed Oct 24 17:16:15 PDT 2012
But then why such "encouragement"
https://brendaneich.com/2012/10/harmony-of-dreams-come-true/ ? ( Proxy
If __noSuchMethod__ is wrong, what's the point of suggesting a way to
simulate it through proxies?
Moreover, what's the point to mark it wrong if many developers asked for it?
I also remember I have written this a while ago:
As result I see Tom's implementation with bound callbacks per property and
a freaking slower runtime every time an API would like a fancy noSuchMethod
behavior ... just saying :-)
On Wed, Oct 24, 2012 at 4:20 PM, Tom Van Cutsem <tomvc.be at gmail.com> wrote:
> 2012/10/24 Yehuda Katz <wycats at gmail.com>
>> I'm not sure I understand the benefit of making it easy to develop APIs
>> where foo.bar() is not roughly equivalent to (x = foo.bar).apply(foo). Am I
>> misunderstanding something?
> No, that's indeed another way of phrasing it. Proxies don't support
> invoke() in part because we didn't want to encourage such APIs.
> es-discuss mailing list
> es-discuss at mozilla.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss