Maybe D is right about GC after all !

Walter Bright newshound2 at digitalmars.com
Sat Dec 23 09:10:25 UTC 2017


On 12/22/2017 7:23 AM, Russel Winder wrote:
> I think we are now in a world where Rust is the zero cost abstraction
> language to replace C and C++, except for those who are determined to
> stay with C++ and evolve it.

Maybe it is. But that is not because D isn't up to the task. I've converted a 
large program from C to D (Digital Mars C++'s front end) with -betterC and it 
really is a zero cost abstraction. The memory safety benefits are there (DIP 
1000), RAII is there, nested functions, array bounds checking, template 
metaprogramming, CTFE, etc.

I expect to be upgrading a lot of older C code I still use in this manner. I 
just don't want to work in C anymore. Furthermore, I do not need to re-engineer 
the C code to convert it to D - it can be done pretty much by rote, unlike Rust.

D as betterC really is a game changer, for anyone who cares to give it a try.


More information about the Digitalmars-d mailing list