2 ms·
std::string has its own share of problems, but at least it's useful for C programmers as a warning on how not to implement a string library (for instance: a str
by flohofwoe 7y ago
std::string has its own share of problems, but at least it's useful for C programmers as a warning on how not to implement a string library (for instance: a string shouldn't be important enough to give it its own allocation, it shouldn't be mutable by default, there should be string manipulation functions which are actually useful in real world situations instead of being an academic exercise, and so on...).
- saagarjha 7y agoI’m not sure I understand your first and third complaints and the second one is why const exists.