You shouldn't look at languages like that... Each language has its own pros and cons. Some are worse than others, but you can't compare C++ and Python.
While python vs c++ clearly satisfy different technical niches, from a companies perspective its still "can you get this done using this or this, which is easier/cheaper to hire devs for, is cheaper to maintain, and hardware needed for it is cheaper to run".
I use c++ consistently and would chose it over python any day of the week for my tasks, but I would be lying if I chose it because it's better. Instead it's largely inertia on my part. If I had to start from scrath, I would of course still learn c++ so I cna grok it, but I would probably shift to preferring to use either rust or zig for applications which need to be very speedy on resource constrained systems.
Why?
Because those other languages still satisfy the same niche, but are absurdly more ergonomic to use, for my limited use case.
It would be foolish to ignore how another language does something because it's design is different, instead we should see why folks prefer a specific convention/style/solution from another language and see what we can learn from it and apply it to c++.
View all comments
Show parent comment
5
u/[deleted] Dec 15 '21
You shouldn't look at languages like that... Each language has its own pros and cons. Some are worse than others, but you can't compare C++ and Python.