Rationale for Dict?

Domenic Denicola domenic at domenicdenicola.com
Tue Jan 8 13:05:47 PST 2013

More likely, knowing our friendly neighborhood JIT-coders, Maps which only contain string keys will be optimized under the hood.
From: Axel Rauschmayer [axel at rauschma.de]
Sent: Tuesday, January 08, 2013 16:01
To: Domenic Denicola
Cc: es-discuss list
Subject: Re: Rationale for Dict?

On Jan 8, 2013, at 21:24 , Domenic Denicola <domenic at domenicdenicola.com<mailto:domenic at domenicdenicola.com>> wrote:

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

That’s a good point. And __proto__ being just another property helps tremendously.

However, not having methods seems unfortunate. It would be nice for Dicts to look like Maps with only string keys, but with get(), set() and has() being optimized under the hood. But maybe that’s too much effort.


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/0a86b61b/attachment.html>

More information about the es-discuss mailing list