4 ms·
>I realized it aided compatibility with languages that do not support homogeneous arrays. Don't you mean languages that only support homogeneous arrays (or lan
by cjh_ 14y ago
>I realized it aided compatibility with languages that do not support homogeneous arrays.
Don't you mean languages that only support homogeneous arrays (or languages that do not support non-homogeneous)?
As the spec says that the array elements must all be of the same type, thus homogeneous.
If I a mistaken, can you please explain why?
- LeafStorm 14y agoI meant "only support homogeneous arrays," or "do not support heterogeneous arrays," and apparently got the two wordings mixed up. Thanks.
- Gotttzsche 14y agolooks like you can put string arrays and int arrays into the same array though. "data = [ ["gamma", "delta"], [1, 2] ] # just an update to make sure parsers support it" so in a static language it would be like: Array<Array<???>> not sure this makes any sense