Comment #7 on issue 633 by bedney1: Implement harmony proxies
http://code.google.com/p/v8/issues/detail?id=633

Bradley -

As the party who originally requested the __noSuchMethod__ functionality to be added to SpiderMonkey years ago, I would respectively disagree with your characterization of it as a 'convenience'. Being able to supply proxy objects and have them act as 'stand in's is an expression of a very powerful design pattern. Most modern dynamic languages provide a similar capability (Smalltalk has doesNotUnderstand, Ruby has methodMissing, Python has getAttr/setAttr).

You can find more about a slightly formalized version of this discussion by myself and my business partner here:

https://mail.mozilla.org/pipermail/es-discuss/2008-August/006901.html

I would agree that I find the current Harmony proxy proposal unwieldy since it loads the notion of 'wrapping' objects onto the programmer at every point that a proxy object is desired. IMO, a mechanism such as __noSuchMethod__ is cleaner and more dynamic. However, it looks like that desire has been discarded by the language lawyers in the ECMAScript committee.

Cheers,

- Bill

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to