Does that mean that we can have an array (of either static or dynamic elements) with fixed size, where this fixed size is 0? (so the typeint256[0], or bool[0], or string[0], or bytes[][][][][0][]?)
I can understand the need for supporting a zero-tuple (it is very common from functional languages), but I do not understand what a fixed-size zero-length array is supposed to be for.
Do they exist, or is this an off-by-one error in the documentation?
If they do exist, are these encoded as 'empty arguments' that do not take up any space in the hexadecimal ABI string?
In the ABI spec section Types, the following statement is written:
In the section Formal specification of encoding, the following statement is written:
Does that mean that we can have an array (of either static or dynamic elements) with fixed size, where this fixed size is
0
? (so the typeint256[0]
, orbool[0]
, orstring[0]
, orbytes[][][][][0][]
?) I can understand the need for supporting a zero-tuple (it is very common from functional languages), but I do not understand what a fixed-size zero-length array is supposed to be for.Do they exist, or is this an off-by-one error in the documentation? If they do exist, are these encoded as 'empty arguments' that do not take up any space in the hexadecimal ABI string?