On Fri, Apr 30, 2010 at 3:42 PM, Tom Van Cutsem <[email protected]> wrote: > Hi, > I recently gave a Google tech talk on my joint work with Mark S. Miller on > Harmony proxies and the traits.js library. Below is an abstract and a link > to the video.
May I recommend that the "enumerate" method return a "forEach"-able object, such that: for (x in proxy) … be reified as: handler.enumerate().forEach(…) albeit optimized for proper Arrays? This would permit at least some degree of laziness. I've also been working on a "handler" API for promises in CommonJS, which has a reasonable degree of symmetry. One thing that's occurring to me is that it is probably desirable for a generic, potentially frozen prototype handler to be exposed so that they can be explicitly prototypically inherited and extended. I'm not sure whether you've specified that handlers must be records, owning all usable trap properties, but that would preclude meta-object hierarchies. I suspect that these will be desirable and that exposing the base handler prototype would be useful. Kris Kowal _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

