Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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...).


I’m not sure I understand your first and third complaints and the second one is why const exists.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: