Some programmers seem to violently hate them, while others seem to think they\'re fine. I know that anything that can be done to a multi-dimensional array can also be done to a
Well, in C++ I dislike multidimensional arrays because they should be replaced with std::vector
. They're also particularly important if you want to represent a std::vector
.
Multidimensional arrays are so simple a primitive I'm suprised most would care. However, a design that uses a single dimension is probably better than one using multiple dimensions, all other things being equal.