Open
Description
Copied from From #45
I have another idea for declaring sized arrays. How about mapping a tuple to SizedArrayType/ArrayType or maybe even TypedArray?
Here is an example:
new Struct({
foo: [u8, 100], // length 100
});
I've considered stuff like this in the past and eventho I really like how much cleaner it is compared to new SizedArrayType(u8, 100). I am conflicted if this magic is something we should want for the library.
Maybe this is something we could do with decorators so that the magic spaghetti for it would be in a optional decorator somehow?
Activity