←back to thread

196 points svlasov | 1 comments | | HN request time: 0.224s | source
Show context
gpderetta ◴[] No.40851823[source]
I have been waiting for static reflection for the last 20 years. The current proposal seems quite nice, but the real question is whether any non trivial usage will kill compilation performance.
replies(1): >>40852061 #
a1o ◴[] No.40852061[source]
The implementation that exists for clang is fast but we will see how it goes with MSVC and GCC.
replies(1): >>40852066 #
gpderetta ◴[] No.40852066[source]
At least is a proof existence that it can be done.
replies(1): >>40854124 #
1. flohofwoe ◴[] No.40854124[source]
That doesn't mean much unfortunately, Clang had a fully working C99 designated initialization in C++ for many years, but the designated initialization that ended up in C++20 is only a butchered version of the full feature set despite Clang clearly demonstrating that it's possible to integrate the full C99 designated init feature set into C++.