typed-objects-explainer icon indicating copy to clipboard operation
typed-objects-explainer copied to clipboard

Memory order?

Open CoDEmanX opened this issue 8 years ago • 4 comments

The given example var PointType = new StructType({x: float64, y: float64}) uses an object to specify which types are supposed to be used and what their attribute keys are. But object keys are unordered in JS, so it's unclear in which order they are "[...] laid out in memory consecutively"[1]. Or am I overlooking something here?

The order will usually not matter, but it may in serialization.

CoDEmanX avatar Dec 11 '15 14:12 CoDEmanX