Hacker News new | ask | show | jobs
by logicchains 1856 days ago
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.
1 comments

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