Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Porting 58000 lines of D and C++ to jai, Part 0: Why and How. Parent comment
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.
As for classes, just pretend you are using structs in C++, and use structs in D.
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.