News for hackers. Stuff that matters.
Re:Efficient string copying and concatenation in C by flohofwoe on Thursday September 12, 2019 @12:54PM (#20953668)
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...).
Re:Efficient string copying and concatenation in C by saagarjha on Thursday September 12, 2019 @01:22PM (#20953985)
I’m not sure I understand your first and third complaints and the second one is why const exists.