typed-objects-explainer
typed-objects-explainer copied to clipboard
Memory order?
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.