Reflection in C++14: Explanations
blog.simon-ninon.fr
Reflection in C++14: Explanations
1–10 of 37 posts
Re: Reflection in C++14: Explanations
#2Re: Reflection in C++14: Explanations
#3Re: Reflection in C++14: Explanations
#4Re: Reflection in C++14: Explanations
#5Re: Reflection in C++14: Explanations
#6I applaud your effort and I actually like your result but this just shows how much we need real reflection in C++17. I like to use C++ for its performance and the recent standards were a big leap in the right direction but reflection just isn't one of C++'s strengths.
Re: Reflection in C++14: Explanations
#7Still much grosser than reflection in other languages.
Re: Reflection in C++14: Explanations
#8Or, if not, other languages will look at C++ to see how they handle these features and keep performance, and improve their compilers.
Re: Reflection in C++14: Explanations
#9...in a web framework in C++, where presumably the developer would need to write C++ anyway to make use of it?
This article is quite long and complex
No kidding. And to me, all that complexity just screams "you're doing it wrong."
I read this article all the way to the end, and was disappointed to find that, after all that code, it ends with a single macro call --- in C++ --- and leaves the reader wondering about the original goal of using JSON.
Years ago I spent a brief amount of time maintaining Java code that was written in this reflection-heavy, everything-configurable (XML and even some ad-hoc text formats, but similar idea) style, and it was not at all enjoyable to get everything set up correctly nor debug the monstrosity. On a somewhat related note, http://discuss.joelonsoftware.com/default.asp?joel.3.219431....
Re: Reflection in C++14: Explanations
#10I wonder how long it'll be before C++ loses its performance advantages. It used to be low level enough that just using it meant you probably got a pretty good performance boost. But if they keep adding features like variants and reflection, and if people actually start using them, it seems like performance will necessarily decline. Or, if not, other languages will look at C++ to see how they handle these features and…