3 ms·
Can you explain what you mean by never had in the first place? The core D language allocates closures and exceptions which is like Java. Rust and C++ don't do
by Kranar 6y ago
Can you explain what you mean by never had in the first place?
The core D language allocates closures and exceptions which is like Java. Rust and C++ don't do any kind of dynamic allocation for these features.
- mhh__ 6y agoExceptions are the big sticking point at the moment, true, but you don't have to allocate them with the GC. Rust and C++ don't have associative arrays in the language to begin with, so if you write C++ in D you won't allocate.
- teleforce 6y agoIt is not entirely true, please check D as a Better C [1]. You can have your cake and eat it too with D. [1]https://dlang.org/blog/2017/08/23/d-as-a-better-c/ https://dlang.org/blog/2017/08/23/d-as-a-better-c/