Now try to concatenate a bunch of them in C.
std::string_view is a nice fix for this but few programmers seem to use it yet.
I would partially agree with you, if it only mentioned C++.
Only partially, because too many C++ devs still use plain old C strings.
const char* strings[]={"ab","cd", "ef", "gh", ....};
char result[1024*1024*1024*1024];
size_t sz=0;
for(int i=0; i<sizeof(strings); i++)
{ size_t len=strlen(strings[i]); memcpy(result+sz, strings[i], len); sz+=len; }
result[sz]=0;Why not just do a binary search through the entire 256TB virtual memory space, finding the largest memory address that doesn't segfault? :-)