Where do you get the idea that the author is ranting against strings in C? I don't see it.
struct string_t { const char * buffer; int lenght };
And really, I fail to see any attack on C in this article, it only mentions what a naive programmer might do, and why he/she shouldn't. const char[] str = "This is a string";
int len = sizeof(str) / sizeof(str[0]);
Compile-time..still not dynamic immutability though.The array pointer can't change, the buffer size can't change, and the char components are const. Immutable but then again, you can violate that quite easily. And it's only compile-time immutability, which isn't all that great.