3 ms·
"but all of the options up to now (e.g. D, Go), forced a GC on you, with no language support for explicit resource management." That's a lie. D supports both R
by kombine 15y ago
"but all of the options up to now (e.g. D, Go), forced a GC on you, with no language support for explicit resource management."
That's a lie. D supports both RAII(via scope stament which is a lot more flexible that C++ approach as well as using structs) and deterministic memory management.
- Patient0 15y ago"That's a lie." -> it's been a while since I looked at D so maybe it's changed since I last looked - but I remain unconvinced that the GC in D will deterministically call your destructors for you (which is my point) and runs in the same thread. As I understand it, the Rust GC uses reference counting precisely for this reason. To be honest, I'd be happy even if it did not detect cyclic references as I never found these to be a problem when writing C++ code (could always re-factor to avoid them). Maybe I should have said "deterministic destruction by the GC" instead of RAII. Whatever, my intention was not to mislead. Please don't call me a liar just because you disagree with something I state with honest intentions.