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

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.



It 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/


Exceptions 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.


I never mentioned garbage collector or associative arrays, I mentioned dynamic memory, closures, and exceptions.


Well I hoped dynamic memory was obvious given the D GC is written entirely in D and it has to get memory from somewhere




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

Search: