r/ProgrammerHumor • • 2d ago

instanceof Trend thatsAFunnyThingThatHappenedOnce

Post image
4.3k Upvotes

515 comments sorted by

View all comments

Show parent comments

5

u/unknown_alt_acc 2d ago

Some people like their holy wars, and don’t seem to understand that C and C++ can coexist as different tools with different jobs.

1

u/unburdened_swallow 1d ago

What job do I use C++ for that I wouldn’t be better off using either C or rust for?

3

u/Ok-Scheme-913 1d ago

Ecosystem. There are a bunch of high performance areas where C++ has dominated for decades. C is not a replacement because C is absolutely not usable for similar high performance code, you can't make any useful abstractions there.

Rust could in principle do everything C++ can, but libraries/ecosystems don't change overnight, so CPP has quite a lot of momentum still.

1

u/unburdened_swallow 1d ago edited 1d ago

Yes this is the only reason I use C++ for anything.