C++26: Span improvements

7 points by raymii


thasso

C++ is so ridiculous. People constantly post about a plethora of exciting new features of a language that apparently nobody comprehended even 10 years ago. I recall even Matt Godbolt, who is like a super expert on C++ and has been using it for decades for all I know, saying in his Podcast that he is occasionally surprised when reading the standard. Maybe it was someone else, but it was definitely a C++ expert.

And, no, saying people either complain about a language or don’t use it is not an argument because it doesn’t address any of the concrete problems of C++. It’s just denying responsibility for poor design choices that cannot be changed now.

C++ is in a really tough spot because they can’t deprecate or remove existing features (too much code depends on them), but they want to address new demands. They also can’t make new versions incompatible with old ones because there’s lots of C++ mixing features from various standards.

C is aging much more gracefully because newer standards don’t aspire to beat, say, Zig. Maybe C++ should do the same.