3 ms·
D is not at all like C++. D is D. You only need to compare how C++ and D treat a class type, and you know straight away they are miles apart (I prefer C++ in
by SilentLambda 4y ago
D is not at all like C++.
D is D.
You only need to compare how C++ and D treat a class type, and you know straight away they are miles apart (I prefer C++ in this regard).
D has a subset, and that subset is more like C - pretty much cause that subset is C. That can be interesting to use, since it's like C with modules.
But don't be fooled. D is not like C++.
I wish people would stop saying as such, cause it's not at all true.
- pjmlp 4y agoYou're right, in many areas it is more powerfull than C++23 is. As for classes, just pretend you are using structs in C++, and use structs in D.