r/ProgrammerHumor • • Oct 17 '26

instanceof Trend thatsAFunnyThingThatHappenedOnce

Post image
4.6k Upvotes

524 comments sorted by

View all comments

Show parent comment

1

u/Infamous-Bed-7535 Oct 19 '26

C footguns are way worse I do not really get why people still use it, even at embedded c++ is an alternative. You do not pay for what you do not use..

Concepts, raii, ranges, etc.. gives so much more expressive power.

c++ has lot of drawbacks, including having different compiler vendors which are not ABI compatible, name manglings, etc.. language is not perfect neither, but continiusly evolves and with static analyzers and ai review it is much harder to do stupid things unnoticed. Then we will have reflection, profiles, contracts...

C++ is a great languge :)

1

u/born_to_be_intj Oct 20 '26

Right. C++ can be way safer than C if you know what you’re doing. You can leverage the type system to make common C footguns compile time errors.

It’s by far my favorite language lol.