Why does D rely on a GC?
bearophile via Digitalmars-d
digitalmars-d at puremagic.com
Mon Aug 18 04:51:15 PDT 2014
Jonathan M Davis:
> The biggest reason is memory safety. With a GC, it's possible
> to make compiler guarantees about memory safety, whereas with
> manual memory management, it isn't.
Unless you have a very smart type system and you accept some
compromises (Rust also uses a reference counter some some cases,
but I think most allocations don't need it).
Bye,
bearophile
More information about the Digitalmars-d
mailing list