Re:Construct-JS – A library for creating byte level data str...
by FrancisStokes on Monday March 18, 2019 @09:34AM
(#19420847)
Map wouldn't have really brought a lot of clarity or control. You'd have to specify an array of array-pairs, which is noisy IMO, and then you wouldn't have the benefit of being able to programatically/conditionally add fields.
I might consider a static `Struct.fromMap(name, mapObject)`, but as a complimentary API.
I might consider a static `Struct.fromMap(name, mapObject)`, but as a complimentary API.