Re: Proxies fail comparison operator

2017-04-03 Thread Mark S. Miller
The Left Hand of Equals https://research.google.com/pubs/pub45576.html is relevant to this discussion. The advice in this paper should be considered new languages that are not yet committed to an equality semantics. Frankly I have mixed feelings about it, but it is fascinating. OTOH, for

Re: Proxies fail comparison operator

2017-04-03 Thread MichaƂ Wadas
Proxies being able to intercept strict equality would be nightmare - WeakMap and WeakSet would need new semantics, potentially incompatible with previous one. Engines won't be able to optimize certain boolean expressions because of potential side effects. The only thing I can think of is