Hacker News new | ask | show | jobs
by tbrgmnn 2011 days ago
With C++20, use of comma expressions as second argument of a subscript operator got deprecated.
3 comments

... with the intention of allowing multidimensional indexing in the next standard.
Finally!

Multidimensional array discussions tended to dissolve into bikeshedding. Some people wanted the ability to store an array as either transpose, that is, by row or by column. Then that had to be extended to N dimensions. That added a lot of complexity to support a rare use case. Then the proposal got so complex it was shelved. All this is in old USENET comp.lang.c++, if that hasn't been lost yet.

And it is awful. See my comment about yalsat's use of asserts() above.