I don't program in C or defend that language, but each time I read someone complain about the need to manage null-termination and such in C, I wonder if they'd have similar complaints about assembly programming. Sure, C is "higher level" than assembly but only barely? 🤔

#programming #reasoning

@smurthys People complaining usually have something specific in mind. For example, for the null-terminated string, people want pointer + length instead. The proliferation of C APIs accepting null-terminated strings means that even if one writes a custom pointer + length representation, it can't be safely interoperated with those APIs (and this impacts the usability of C++ string_view as well).
@lesley I get all that, but that's how C works. There was no advertising/promises otherwise.
@smurthys @lesley I don't think "false advertising" is the crux of the issue people are complaining about. :)