On Apr 2, 2011, at 1:58 PM, David Bruant wrote: > I'm surprised by the idea that == could be defined on a per-value > comparison basis on objects (Array as you give it as an example). It > doesn't make the relation last throughout the program lifetime (which is > what I was trying to do and requires a priori arrangements). I would > expect an equivalence relation to last throughout the program.
For a non-operator-syntax proposal to add lexically scoped methods as extensions to standard objects, using weakmaps under the hood (but observably in that the extended object could be frozen), see http://wiki.ecmascript.org/doku.php?id=strawman:scoped_object_extensions (This page needs to be linked from http://wiki.ecmascript.org/doku.php?id=strawman:strawman still.) The advantage is that independent modules can cooperate without a prior arrangements or collisions. /be _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

