Hacker News new | ask | show | jobs
by jerf 1856 days ago
If things could be "consigned to history" by C++ adding more features, there'd hardly be any other languages left! It has all the features. That's its biggest problem.
2 comments

Noo, it's missing something basic: struct introspection. Unlike almost every other modern language, it's not possible to write a generic "ToJson" or "ToString" that will work for any struct.
Not sure whether that's a sarcastic commentary or your just not aware, but C++ will, of course, also get (static) reflection

https://en.cppreference.com/w/cpp/keyword/reflexpr

Usually only C++ gets the blame, but that is only because most don't pay attention to other language's reference manuals and standard libraries.

I love to pick on Python for such examples, because it is considered to be the new BASIC, yet when I pick the standard language reference + standard library, the amount of pages outgrows those of ISO C++.

Then there is the list of breaking changes that have happened even across minor versions since Python 1.0.