2 ms·
Unfortunely like many things D, eventually C++ gets the feature, even if not as nice to use. That is template for as part of the C++26 reflection work. https:
by pjmlp 2y ago
Unfortunely like many things D, eventually C++ gets the feature, even if not as nice to use.
That is template for as part of the C++26 reflection work.
https://isocpp.org/files/papers/P2996R4.html https://isocpp.org/files/papers/P2996R4.html
You will also find some well known names here,
https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2025/p3420r1.html https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2025/p34...
- Doxin 2y agoI feel like the main problem people have with C++ is not the lack of features, but the absolute glut of slightly bad features. That's why I prefer D over C++ in any case: it's a much smaller language. You can learn enough to be dangerous in an afternoon, and enough to be proficient in a week or two.
- pjmlp 2y agoI on the contrary, I rather reach out to C++, even though I like D, it isn't the features, it is the ecosystem. Otherwise I rather stay in JVM/CLR/V8 land, when I don't need to. I have been around D since Andrei Alexandrescu's book was published, even he is now back in C++ at NVidia, as his main work after he kind of stepped away from his role in D development. And he is one of the figures on C++26 reflection papers.
- Doxin 2y agoOh C++ has the clear advantage in libraries available, for sure. That's not really due to the languages themselves though I'd say. I'm honestly not quite sure why C++ got widely adopted and D did not.
- pjmlp 2y agoAlmost two decades predating it, and sadly no OS vendor picked up on it. Many people forget C++ is a C sibling, born at AT&T on the same building UNIX and C were being handled, thus it was quite an easy win for C compiler vendors, to add C++ support to their toolchains. Note that Objective-C also never made it outside NeXT, GNUStep was never that good clone, and had it not been for Apple's acquision and success, maybe we would no longer speak about it. When Facebook or Remedy Games played with D, we hoped it would somehow improve adoption, that was never the case, and both companies no longer use D.