On Tue, Nov 10, 2026 at 3:04 PM Comical USA via Std-Proposals <std-proposals@lists.isocpp.org> wrote:
In C you can do
int a[5] = {
[3] = 2,
};
which will make the array 0, 0, 2, 0, 0
but on C++ you can do that only with lambda or like this int a[] = { 0, 0, 2, 0, 0 } or after initializating you must do a[3] = 2; and it's pretty annoying, can we get in C++29 this C feature?

That's "designated initializers" — see cppreference. C has them; C++20 got a relatively nerfed version of them.
P0329's rationale for omitting array-element initializers is found in [diff.dcl]: "Array designators conflict with lambda-expression syntax."
I'm not sure that they quite conflict, really; but I can contrive some fun puzzles (Godbolt) based on their visual similarity and the untidiness of vendor extensions in this area.

https://quuxplusone.github.io/blog/2026/11/10/designated-or-lambda/

–Arthur