This is a somewhat bizarre question. My objectives are to understand the language design decision and to identify the possibilities of reflection in C++.
-
Why C++ language committee did not go towards implementing reflection in the language? Is reflection too difficult in a language that does not run on a virtual machine (like java)?
-
If one were to implement reflection for C++, what will be the challenges?
I guess the uses of reflection are well-known: editors can be more easily written, program code will be smaller, mocks can be generated for unit tests and so on. But it would be great if you could comment on uses of reflection too.