[whatwg] native ordered dictionary data type in web storage draft

James Graham jgraham at opera.com
Tue Apr 14 10:06:37 PDT 2009


Aryeh Gregor wrote:
> On Tue, Apr 14, 2009 at 10:18 AM, Patrick Mueller
> <pmuellr at muellerware.org> wrote:
>> This is the first time I've seen the requirement for such a beast.  You can
>> understand the desire for it, given the context, but still.  Does anything
>> else in JavaScript make use of such a data structure?
> 
> It says that JavaScript should just use Object.  Isn't that,
> essentially, an ordered dictionary?

Yes. Indeed there are compatibility requirements for the ordering of 
ordinary user-created Object Objects in web browser implementations; the 
order of enumeration must be the same as the order of insertion of the 
properties.


More information about the whatwg mailing list