Remix.run Logo
downrightmike 8 hours ago

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

MyOutfitIsVague 7 hours ago | parent | next [-]

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.

pjmlp 21 minutes ago | parent | prev | next [-]

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

cowsandmilk 37 minutes ago | parent | prev | next [-]

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

bnolsen 7 hours ago | parent | prev | next [-]

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.

jeltz 7 hours ago | parent | prev [-]

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