It is the year 2020: why should I use / learn D?

welkam wwwelkam at gmail.com
Sun Nov 18 15:59:48 UTC 2018


On Wednesday, 14 November 2018 at 15:07:46 UTC, lagfra wrote:
>
> TL;DR: what will D offer with respect to C++ when almost all 
> key features of D are present in C++20(+)?

If you list C++, D and Rust language features you would find that 
they are almost the same. That said its immediately clear that a 
list of features are not enough to describe a language. Your 
experience with these languages will be different because they 
are different languages.

C++ biggest problem at this time is long compile times. It can 
add all D`s compile time features and still people would not use 
those features to the same extent as in D just because those 
features would increase compile times to unacceptable levels. At 
this time big projects like compilers and game engines take half 
an hour to compile on modern machines. Now imagine what their 
compile times would happen if those project would use meta 
programming to the same level as WekaIO. And no modules wont 
change this significantly.

But as other said it already C++ havent -stolen- implemented 
those features correctly and by the time you could use them D 
would have improved even more.


More information about the Digitalmars-d mailing list