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

C is fine C++ is where they jumped the shark




C++ is far better than C in very many ways. It's also far worse than C in very many other ways. Given a choice between the two, I'd still choose C++ every day just for RAII. There's only so much that we can blame programmers for memory leaks, use-after-free, buffer overflows, and other things that are still common in new C code. At some point, it is the language itself that is unsuitable and insufficient.

C++ explored a lot of ideas that some modern languages borrowed. C++ just had to haul along all the cruft it inherited and built up.

Until WG14 ackwnowledges the safety holes in C, isn't fine at all, it should be nuked.

I’m not sure what that has to do with the comment you’re replying to…

No, C is not fine. It is a really bad language that I unfortunately have to code professionally.



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

Search: