Why do C++ programmers are not interested in D?
Ola Fosheim Grøstad
ola.fosheim.grostad at gmail.com
Sun Nov 24 14:23:34 UTC 2019
On Sunday, 24 November 2019 at 13:47:42 UTC, Guillaume Piolat
> On Sunday, 24 November 2019 at 13:29:12 UTC, Ola Fosheim
> Grøstad wrote:
>> C++ is seeing growth because it is regularly updated.
> By what metrics C++ would be growing? Because it doesn't seem
FWIW, C++ has always been a troubled language.
Cfront was slow.
After Cfront C++ compilers implemented C++ slightly differently
so you could not easily write portable code.
After C++ was standardized compiler impementors had a hard time
implementing all of it.
After most of it was implemented you'd still have to optimize
your code in C-like manner as optimizers weren't on the level
they are today. So you might start with something clean and end
up with something you didn't like...
And you had to manage your own memory. And to use RAII you had
write lots of verbose class descriptions.
Overall C++11/17/20 with clang/gcc is a much easier language to
work with than C++ ever was. Everything is relative. But C++ has
never been "clean". Ever.
D is clearly a much easier language to get started with in my
Although, if you read the C++ reddit, some C++ programmers claim
that D is too similar to C++ to be worth the switch. Maybe they
are right, but D has much more room for making changes... C++'s
backwards compatibility requirement is gridlocking the design
space, so with every addition C++ is locked down more and more...
More information about the Digitalmars-d