3 ms·
> I don't blame the people who created C, I blame the people who continue to use it today. that's pretty harsh, and far-reaching. is it really justified to pai
by signa11 11y ago
> I don't blame the people who created C, I blame the people who continue to use it today.
that's pretty harsh, and far-reaching. is it really justified to paint _everything_ with that brush ?
- lmm 11y agoProbably not; I probably should remain open-minded. But I've seen so much written in C, and so rarely has C been a good choice, that I don't feel like wasting any more of my time.
- Dylan16807 11y agoWhat's harsh about it?
- unscaled 11y agoThat's harsh, but probably true. There might have been good reason to make null-terminated strings the default in the past (e.g. K&R C not passing structs by value), but it has little meaning today. The arguable memory overhead of length-prefixed strings is outweighed by the significant performance and safety benefits. Considering that stubborn programmers are still using strcpy() and its ilk to this very day and the billions of dollars lost every year to cybercrime, then I don't think it's harsh.