On Aug 24, 2008, at 11:43 AM, Mark S. Miller wrote: >> I agree with you, compareTotal or something like it (stringization >> followed by ===) is enough. > > compareTotal is addressing a completely different need than Object.eq.
Why is eq being proposed whatever happens with Decimal? BTW, eq is traditional in Lisps but way too short and overloaded in JS. Suggest Object.identical or something like that. If the topic is Object.hashcode, then this makes sense. I don't see why Decimal caused eq to be brought up, though. > With decimal postponed, we don't need to settle this now. But > JavaScript has no well behaved *equality* operator. As > <http://en.wikipedia.org/wiki/Equivalence_relation> explains, We've been over this before, === is an equivalence relation excluding NaN. It happens to put 0 and -0 in the same equivalence class. Why this is a problem has yet to be demonstrated (add hashcode and then we can talk ;-). /be _______________________________________________ Es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

