Well, a map is more often of dynamic size, mapping from one specific type T to another specific type U. (Of course, either can be variants.) An object is a bag of properties of fixed size, with keys of type string|symbol, values of a type specific to the property, metadata from the property descriptor, and a prototype chain.
Nobody mention Array. ;) On Thursday, 16 June 2016, doodad-js Admin <dooda...@gmail.com> wrote: > > the consensus appears to be moving towards treating Objects like records > > But we have Map for this ? It’s difficult to follow the consensus... Why > they “implemented” class if they don’t want classes, but “records” and no > methods, but global/module functions ? Are we moving back to good old BASIC > and COBOL languages ? > > > > Anyway, I have my polyfill for “Object.symbols”, I was just hoping for > something more performant. > > > > Thanks >
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss