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

C++. I hate it, it has its own host of problems, and memory corruption is certainly still an issue there, but the most common issues that plague C apps won't plague properly written C++ apps/libraries. C's string handling (or lack thereof) has cost the world an immeasurable amount of time and money.

The biggest advantage that C++ has over just about everything else, is that you can use it to write libraries usable from everything else, and you can do it very easily. You can expose a C-style API trivially, and bind it to everything you want; that advantage can't be overstated.

While I'd love for everything to be written in pure safe, managed code, that's not viable right now. C++ is the best alternative we have, when safe languages aren't usable for the task.



> the most common issues that plague C apps won't plague properly written C++

or properly written C, either. :-)




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

Search: