3 ms·
A few possible reasons I can think of: * The benefits it offers over C++ are (or were) not significant enough to make people invest in the switch * There were
by sparkie 13y ago
A few possible reasons I can think of:
* The benefits it offers over C++ are (or were) not significant enough to make people invest in the switch
* There were issues in the past with a poor initial standard library (Phobos 1), which led to an alternative standard library, Tango being developed - which was incompatible with Phobos, and resulted in a somewhat divided ecosystem where you had to prematurely pick one or the other. Eventually these issues were ironed out and an improved Phobos became the standard library, with Tango made compatible with it. (The damage was already done though.)
* Library availability lacked compared with C++ - although D could import C standard libraries it was not ABI compatible with C++, and its target audience - C++ programmers, were not going to throw away backward compatibility with all of the libraries they had already written.
* As you suggest, the word "Garbage Collection" scares some people away, despite it being optional.
* It's not backed by a big name - and our industry is obsessed with big names.
* Perhaps a lack of literature and interest by academic institutions to teach it.
None of these are issues for present-day D, but I think people's perception of the language is still affected by them.