String class concepts

For the string class the key concepts are:

  • Don’t do reference counting. A lot of C++ books in the 90’s got very excited about string classes which would do copy on write. It’s an example of a premature optimization before people started writing multi-threaded applications.

Â