Rationale for Dict?

Axel Rauschmayer axel at rauschma.de
Tue Jan 8 14:02:15 PST 2013


Right. Even better.

On Jan 8, 2013, at 22:05 , Domenic Denicola <domenic at domenicdenicola.com> wrote:

> 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> 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.
> 
> Axel
> 
> -- 
> Dr. Axel Rauschmayer
> axel at rauschma.de
> 
> home: rauschma.de
> twitter: twitter.com/rauschma
> blog: 2ality.com
> 
> 

-- 
Dr. Axel Rauschmayer
axel at rauschma.de

home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com

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


More information about the es-discuss mailing list