Why do C++ programmers are not interested in D?

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Sat Nov 23 09:09:58 UTC 2019


On Friday, 22 November 2019 at 14:31:46 UTC, Guillaume Piolat 
wrote:
> With C++ you are also stuck in forever learning mode. Maybe 
> learning the new move constructor stuff is going to make life 
> easier? C++ is updated way faster than practionners can handle, 
> strangely enough D has more respect for your time.

Actually, that is a myth. There have been very few language 
changes in C++, and they are basically non-breaking. Most of the 
changes have been on a library level or as syntactical sugar.

- Lambdas er wrapped-up objects. So mostly syntactical.

- Stackless coroutines are wrapped-up promises.

- Move semantics is type casting (they added && with some 
peculiar rules to avoid some user errors).

- Type traits are mostly library constructs.

The basic problem with C++ is that it cannot take on breaking 
changes, so it is stuck with some seemingly arbitrary exceptions 
and restrictions, and unification can sometimes be difficult to 
understand.

This is really a consequence of C++ being primarily C with some 
extras like OO, exceptions, overloading and most code written 
prior to 2011 was C code with some OO stuff and simple templating 
where OO fell short in terms of performance.

The biggest issue many have with C++ is that C++ cannot clean up 
their syntax and semantics.

D can though.



More information about the Digitalmars-d mailing list