Hacker News new | past | comments | ask | show | jobs | submit login

Take strings for example. In C you have to manually manage memory and there are a million pitfalls. Lots of programmers are lazy and use fixed-sized arrays and "unsafe" functions like strcpy which results in security vulnerabilities and large-input bugs. But even if you do it correctly you have all this mental overhead and lots of lines of code.

In C++ you just drop in std::string and go.




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

Search: