|
|
|
|
|
by osmala
3674 days ago
|
|
While C++ has plenty of interesting and nice features to play with it lacks something important Java has, reflection.
C++ would be pretty close to "perfect" language if it would add reflective capabilities on top of all the other nice features. Yes. I know some libraries add "reflection" but its not good enough. It needs to be baked in language and not require additional syntax on classes to be used as data for your own reflective code. |
|
It would also require additional overhead for RTTI information per object, if you want it to work using arbitrary void *.
It'd br great to have reflection of course. At least so some subset, non-generic but with zero (or low) overhead.
Just being able to iterate known type struct or class fields could be something.