It this even a language for human beings anymore? Or am I just short on cups of coffee this morning?
I appreciate that they're solving a lot of corner cases and adding some advanced functionality in the spec but now we've got language text that looks quite a bit like perl. I wonder if it will acquire some of the same properties.
Until something else takes over the domains where C++ rules, it is what we have, even the crustacean compiler is built on top of C++ infrastructure (LLVM/GCC).
I've been an avid C++ user for ages and this is the first time I've seen the final spec of C++26 reflections used in a practical context - and wow am I having a "wtf" moment at the syntax.
^^T ?? obj.[:member:] ?? What is this craziness? No way this is the best we could come up with. I'm actually thinking C++ may be going too far (and this is as someone who thinks template metaprogramming is "fine").
Never before has that quote "inside C++ is a smaller, better language trying to get out" been more applicable.
6 comments
[ 3.5 ms ] story [ 27.3 ms ] thread> Reflection in C++26 might be insufficient for replacing moc.
https://wiki.qt.io/C++_reflection_(P2996)_and_moc
I appreciate that they're solving a lot of corner cases and adding some advanced functionality in the spec but now we've got language text that looks quite a bit like perl. I wonder if it will acquire some of the same properties.
^^T ?? obj.[:member:] ?? What is this craziness? No way this is the best we could come up with. I'm actually thinking C++ may be going too far (and this is as someone who thinks template metaprogramming is "fine").
Never before has that quote "inside C++ is a smaller, better language trying to get out" been more applicable.