3 ms·
Sigh, no GC language guarantees no memory leaks either.
by tjoff 4y ago
Sigh, no GC language guarantees no memory leaks either.
- anonymoushn 4y agoSo when someone comments "Or we could use a language that doesn't let you write memory leaks using the type system, like Java" then we can reply that that's not true about Java. But in this comment thread people only wrote that about Rust.
- tjoff 4y agoRead the thread. The implication was that non-GC languages leads to memory leaks. Rust was then presented as an option that isn't worse than a GC language in that regard. Countering that with "Rust doesn't attempt to guarantee no memory leaks." is just silly...
- anonymoushn 4y agoI read it. What problem is Rust claimed not to have, which C and C++ have? Which GC language makes no attempt to collect unreachable reference cycles, so that Rust is no worse?