I think it's a bad idea to start people off with the traditional char array. It teaches them bad habits right off the bat, and nobody needs yet another bad habit.
For better or worse, there's a large quantity of code that uses this approach -- perhaps most notably, many of the examples on ADC. There's nothing to be gained by pretending that's not the case. But maybe I'll add a few more notes on the subject.
I'd probably just eliminate the 'string' talk altogether, because unfortunately, there are just too many different ways of manipulating the string concept in the C/C++ world
I can respect what you're saying, but I just don't agree with the conclusion. It's a matter of walking before you can run.
by Scott Stevenson — Feb 21
For better or worse, there's a large quantity of code that uses this approach -- perhaps most notably, many of the examples on ADC. There's nothing to be gained by pretending that's not the case. But maybe I'll add a few more notes on the subject.
I'd probably just eliminate the 'string' talk altogether, because unfortunately, there are just too many different ways of manipulating the string concept in the C/C++ world
I can respect what you're saying, but I just don't agree with the conclusion. It's a matter of walking before you can run.