4 ms·
The big thing C++ has over D is momentum. Lots of stuff out there in C++ land, whereas the D ecosystem feels a bit sparse. Also, D doesn't have an equivalent t
by 5hoom 15y ago
The big thing C++ has over D is momentum. Lots of stuff out there in C++ land, whereas the D ecosystem feels a bit sparse.
Also, D doesn't have an equivalent to the RAII/Smart pointer paradigm (being a garbage collected language) so it might not be as good for realtime stuff where a g/c pause is unacceptable. If anyone uses D for realtime/high performance programming please chime in though ;)
- bad_user 15y agoLook, people make comments about D without knowing a thing about it. Of course D has RAII -- http://www.d-programming-language.org/memory.html#raii http://www.d-programming-language.org/memory.html#raii In D you can also do manual deallocation of memory, if predictability is what you want, the difference being that D comes with a garbage-collector from the start and encourages you to use it, which is a lot better than reference-counted pointers or other hacks; but at the same time it is also possible to use D without a GC.