Re: ES5 Module Systems (was: Alternative proposal to privateName.public)

2011-12-27 Thread Axel Rauschmayer
This type of boilerplate may not be processed properly by AMD optimizers that insert module IDs into the define call when multiple modules are combined together. While the above may work with the requirejs optimizer, it is not guaranteed to work in the future. I still prefer the define() call

Simple maps/sets: parameterize the comparator?

2011-12-27 Thread Axel Rauschmayer
http://wiki.ecmascript.org/doku.php?id=harmony:simple_maps_and_sets Currently, using Object.is() is hard-coded. But one could allow a comparator function being handed in (with Object.is being the default). -- Dr. Axel Rauschmayer a...@rauschma.de home: rauschma.de twitter:

Maps and WeakMaps interoperability

2011-12-27 Thread David Bruant
Hi, Maps [1] and WeakMaps [2] are very similar in their API. Since neither proposal discusses how they should interact with each other, I was wondering what is supposed to happen when trying to use the API of one on the other. - var m = new Map(); var key = {}; m.set(key, 37);

Re: noSuchMethod: funargs + invoke-only-phantoms

2011-12-27 Thread Dmitry Soshnikov
(sorry, was in a small vacation, can't answer earlier) Yes, I'm perfectly aware about what host objects may do (there is even wide-spread phrase in JS community: do not trust to host objects, they can do almost anything). From this viewpoint, if to treat these proxies as host objects, then in

Re: Maps and WeakMaps interoperability

2011-12-27 Thread Mark S. Miller
On Tue, Dec 27, 2011 at 7:15 AM, David Bruant bruan...@gmail.com wrote: Hi, Maps [1] and WeakMaps [2] are very similar in their API. Since neither proposal discusses how they should interact with each other, I was wondering what is supposed to happen when trying to use the API of one on the

Re: Maps and WeakMaps interoperability

2011-12-27 Thread David Bruant
Le 27/12/2011 19:14, Mark S. Miller a écrit : On Tue, Dec 27, 2011 at 7:15 AM, David Bruant bruan...@gmail.com mailto:bruan...@gmail.com wrote: Hi, Maps [1] and WeakMaps [2] are very similar in their API. Since neither proposal discusses how they should interact with each other,