The issue was that decoding an zero-length dynamic array into a nil slice left the destination slice as nil, which isn't inherently bad, but it's a bit wonky since it should ideally become a zero length array, signalling that there's "no data" vs. "missing field". That does require an allocation, but feels better than leaving nil.
Fixes https://github.com/karalabe/ssz/issues/18.
The issue was that decoding an zero-length dynamic array into a nil slice left the destination slice as nil, which isn't inherently bad, but it's a bit wonky since it should ideally become a zero length array, signalling that there's "no data" vs. "missing field". That does require an allocation, but feels better than leaving nil.