r/cpp • • Oct 03 '22

Is C++ your favorite programing language?

And why

292 Upvotes

255 comments sorted by

View all comments

29

u/[deleted] Oct 03 '22

No, it’s not. Some reasons:

  • weak type system

  • lack of separation of concepts (e.g. type vs. behavior)

  • awkward compilation model

  • poor everyday ergonomy

  • bad standard library

  • extremely complex rules that make low-level programming a minefield

I use C++ as a nessesary evil for performance-critical code because it has excellent compile-time capabilities and is easy to integrate with other modern languages. Concepts also make the language more tolerable.

3

u/rhoakla Oct 03 '22

Can you explain how c++ has a weak type system? Bit of a c++ noob here

1

u/[deleted] Oct 03 '22

Not sure exactly what they mean either, but I would say lack of reflection really hurts the type system.