3 ms·
I invite you to use D's -betterC compiler option and evaluate it in the context of C/C++/Rust.
by optymizer 6y ago
I invite you to use D's -betterC compiler option and evaluate it in the context of C/C++/Rust.
- fanf2 6y agoAs I understand it, that means you can't benefit from most of the D standard library and ecosystem
- optymizer 6y agoYou can use packages that have been converted to not use the GC and all of the libraries you would be using in C or C++. You still get the following language features, which is more than what C, C++ or Rust have to offer (though Rust is hot on D's trail). Unrestricted use of compile-time features Full metaprogramming facilities Nested functions, nested structs, delegates and lambdas Member functions, constructors, destructors, operating overloading, etc. The full module system Array slicing, and array bounds checking RAII (yes, it can work without exceptions) scope(exit) Memory safety protections Interfacing with C++ COM classes and C++ classes assert failures are directed to the C runtime library switch with strings final switch unittest printf format validation https://dlang.org/spec/betterc.html https://dlang.org/spec/betterc.html