C++ to D explainer
Joakim via Digitalmars-d
digitalmars-d at puremagic.com
Wed Oct 21 20:34:15 PDT 2015
Someone needs to write up a good translation of a C++ project to
D, showing how the code is better in D and particularly
demonstrating D idioms instead. The ongoing DDMD project,
translating the dmd frontend from C++ to D, may be a good project
for this, or someone might just want to translate some other
small to mid-size C++ project instead. A blog post explaining
what they did would be very worthwhile.
People often talk about how D is its own thing on this forum and
in reddit comments, how it's not just C++ with a couple nice
features and some slightly different syntax, as many C++ people
seem to think. Well, those new D idioms need to be shown
explicitly and translating a C++ project to specifically contrast
the two languages would be a good way to do it.
I'll be translating Android C++ samples like these to D soon, so
that people have some D sample code to try out on Android, but
they're too small to use many D idioms:
https://android.googlesource.com/platform/development/+/master/ndk/platforms/android-18/samples/
More information about the Digitalmars-d
mailing list