C++ Logo


Advanced search

Re: [wg14/wg21 liaison] Multidimensional subscript operator

From: will wray <wjwray_at_[hidden]>
Date: Mon, 26 Apr 2021 10:55:59 -0400
On Mon, Apr 26, 2021 at 9:53 AM Ville Voutilainen <
ville.voutilainen_at_[hidden]> wrote:

> On Mon, 26 Apr 2021 at 16:23, will wray via Liaison <
> liaison_at_[hidden]> wrote:
> > The sentence that Martin highlighted, and it's updated version,
> > appear to show a lack of knowledge of C array fundamentals.
> I'm not sure why that matters. C++ array-ish types are very different
> from C arrays, leaving C arrays the odd and irregular corner case.

How are they "very different"? Should they be?

As Jens M. said

> So far, C++ has shied away from adding more power and beauty
> to C-style built-in arrays

Why leave C array irregular, forever odd?
It is easy to make array more regular (c.f. P1997).
That's the better use of committee time.
C array is a rough cut gem with sharp edges that cut.
Let's polish a beautiful, pure, elemental aggregate.

It matters because C array matters, and not just to C.
And not just to the 'numerical matrix' few who need multi-index.
Lack of safe buffer handling causes continued pain and damage,
to the detriment of C and C++ reputation.

Received on 2021-04-26 09:56:21