News for hackers. Stuff that matters.
Re:I disagree with Linus Torvalds about C++ (2009) by e12e on Monday December 24, 2018 @09:33AM (#18752275)
I actually think this illustrates the success of c++ as a (also) high level language: a relative c++ novice can produce reasonably correct code, by sticking to a small, straightforward subset, and following best practices.

I think c a novice seem much more likely to rely on undefined behavior and have an accidentally working program that leaks memory, fails to check the return value of malloc, close files etc?

That is, one can be sort of productive and "correct" in naive c++ - in c that's not really possible (well, one can be "productive" but correct is less likely?).

There are no comments on this comment yet.