Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

As I understand it, that means you can't benefit from most of the D standard library and ecosystem


You 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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: