[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [odata] Reference for types of collections
Modern _javascript_ retains insert order of object keys
except for integer indices: these appear first in the overall object property order and are sorted numerically. Still some way to goâ From: odata@lists.oasis-open.org <odata@lists.oasis-open.org>
On Behalf Of Stefan Hagen Short comment from the side lines, order is an overloaded term for many ... and hashing is hard. Maybe not so important and even fuzzy thoughts: - Python has ordered (insert order) collections (tuple, list) and
sets (set, frozenset, dict) built in. - Sorted (dynamically maintained sorted order) containers are third-party contributions for python. - C++ std unfortunately introduces confusion by mixing up (actively) sorted containers with (insert) ordered containers. Esp. the abundant map is sorting by element domain attribute. - I write this, because advocating stable insert ordering would offer much more streamable JSON objects when the serializing and deserializing host components could rely on containers with insert order ... that could also spare the decorative Rococo of embedding JSON objects inside JSON arrays only to fixate the order not because there are no unique keys available. - Python 3.6 introduced the stable insert order and in addition delivered a performance boost which provided magic like a cake we can eat and keep too. I still hope for RFC 987654321 providing such a revised JSON. All the best, Stefan On Wed, Feb 8, 2023, at 22:47, Ericson, George wrote:
Stefan Hagen, Emmetten, Nidwalden, Switzerland. write: stefan@hagen.link |
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]