8/2/2026 at 2:45:04 PM
> (everything here also applies to c2y's newly introduced _Countof)Stop the press, they're adding what? So I don't have to keep adding #define count_of(arr) (sizeof(arr) / sizeof(*arr)) to every codebase and living with its failure modes?
I'm really loving C's character arc at the moment, where they keep going back to fix old problems instead of piling everything and the kitchen sink into the language.
by wren6991
8/2/2026 at 5:27:27 PM
> I'm really loving C's character arc at the moment, where they keep going back to fix old problemsValid, but it does seem a bit Stockholm Syndrome to have this much rejoicing that your language added a builtin for getting the length of an array in 2026.
by zbentley
8/3/2026 at 7:50:07 AM
If only they actually fixed arrays and strings properly.C23 and C2y have plenty of kitchen sink features.
by pjmlp
8/2/2026 at 3:48:51 PM
Yeah, despite puritanical hand-wringing over C23, I do like both the discipline and the selectivity with WG14 has shows (and I say this as a card-carrying C++ hater).I do wish they will start looking into proper arrays since there is already a syntax for this can can be augmented semantically:
int func (int arg[static 5])
by HexDecOctBin
8/2/2026 at 7:54:41 PM
Can you explain what you mean exactly regarding this augmenting this syntax?by uecker
8/2/2026 at 9:07:55 PM
I guess they are saying sizeof(...) should return the annotated static size rather than sizeof(int*) in this caseby wren6991