Object.eq is ready for discussion

Jürg Lehni lists at scratchdisk.com
Sun Sep 5 17:49:48 PDT 2010

I would propose to name it Object.equals() as opposed to the unnecessary short eq(), which does not seem right next to unnecessarily verbose function names such as Object.getOwnPropertyDescriptor()


On 5 Sep 2010, at 15:40, Mark S. Miller wrote:

> http://wiki.ecmascript.org/doku.php?id=strawman:egal
> I have previously taken the position on this list that we should not add a third equality construct to JavaScript. However, it is relevant to several other strawmen that are likely to advance -- hasCode, Maps and Sets. Also, its absence repeatedly bites me. I often accidentally code === when I mean Object.eq because it's so hard to remember when ==='s brokenness matters. Nevertheless, I am still ambivalent about adding it as standard equipment. Opinions?
> It is also on the agenda for the upcoming meeting.
> -- 
>     Cheers,
>     --MarkM
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss

More information about the es-discuss mailing list