Rationale for Dict?

Domenic Denicola domenic at domenicdenicola.com
Tue Jan 8 12:24:04 PST 2013


In addition to Brandon's points, it seems to me a clear win from the "say what you mean" angle.

________________________________
From: es-discuss-bounces at mozilla.org [es-discuss-bounces at mozilla.org] on behalf of Axel Rauschmayer [axel at rauschma.de]
Sent: Tuesday, January 08, 2013 15:13
To: es-discuss list
Subject: Rationale for Dict?

Playing devil’s advocate: Is Dict really necessary? Whenever performance doesn’t matter (as much), I’d advocate Map. Otherwise, I’d expect programmers who want the extra speed to be comfortable with Object.create(null).

Assumptions about Dict:
- You still can’t use the key '__proto__'.
- You can’t invoke any methods on it.

How will it implement the iteration protocol?

--
Dr. Axel Rauschmayer
axel at rauschma.de<mailto:axel at rauschma.de>

home: rauschma.de<http://rauschma.de>
twitter: twitter.com/rauschma<http://twitter.com/rauschma>
blog: 2ality.com<http://2ality.com>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130108/afce0169/attachment-0001.html>


More information about the es-discuss mailing list