3 ms·
It would have made C a profoundly different language. C is what it is; a portable assembler. I believe K&R had a strong sense of minimalism; fancier string s wo
by emmelaich 13y ago
It would have made C a profoundly different language.
C is what it is; a portable assembler.
I believe K&R had a strong sense of minimalism; fancier string s would be seen as something that belonged in a library not the language.
This has its benefits; _anything_ fancier would have embedded a whole set of assumptions about typical string handling usage for which the design had optimised.
That no safer string handling library became popular can be seen as a indictment of C or a tribute to their tasteful restraint.