Nailing object property order

liorean liorean at gmail.com
Thu Apr 16 17:07:56 UTC 2015


I'm very much opposed to locking this down for general objects because
it locks the implementation choices for generic objects down. What if
the engine backing implementation was, say, some variation of a trie
for instance? It cannot really be done today without adding extraneous
data into the structure, because lookup in that case happens on a
character by character basis, not on a whole string basis, so
properties that use common prefixes would always end up adjacent and
even if the keys weren't inserted in order by bit patterns into the
trie as most implementations do, they would still be grouped by common
prefix.
-- 
David "liorean" Andersson


More information about the es-discuss mailing list