3 ms·
> Of course, sometimes you do want an array of arrays, such as when each array needs to have a different length or element type – which you can of course do. Wh
by RivieraKid 13y ago
> Of course, sometimes you do want an array of arrays, such as when each array needs to have a different length or element type – which you can of course do. Which is why I'm a bit confused about how having support for multidimensional arrays is a problem. If you find them confusing, why not just ignore the feature and use arrays of arrays all the time?
The standard lib and 3rd party libs use multi-d arrays, so I can't avoid them. But I guess it takes some time to get used to.
> I'm also not clear on what "special treatment by the compiler" means.
I meant something like saving an array of arrays into a continuous memory block and somehow enforcing that the sub-arrays must have equal length. But now I realize that this is probably impossible...