On Apr 2, 2011, at 12:16 PM, Brendan Eich wrote:

> You must mean only in the cases where typeof a == typeof b, then a == b <=> a 
> === b, and === is an e.r. But that does not mean == is an e.r.

Forgot typeof a == "object" above, to be precise.


> For mismatching types, == is not transitive, so not an e.r. Also, for NaNs it 
> is not reflexive (neither is ===).

The desire for < (partial order) as well as a true e.r. is strong, though, so 
thanks for raising this issue.

The big question remains: Is some modular opt-in to better == (and <) for 
objects worth the complexity?

/be

_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to