Hacker News new | ask | show | jobs
by rcxdude 104 days ago
Rust also doesn't prevent memory leaks: you can create memory leaks through reference cycles just fine in rust.
1 comments

Who cares?
People who don’t want to run out of memory?
Are the Rust programmers who suffered from memory leaks through reference cycles in the room with you right now?
Yes? I’ve made that mistake, it’s not particularly hard to do. Stash an Arc in something that lives too long, or forget to clear its inner data structure when you should, and you have a leak.

That’s not like … a design flaw or something, just a common class of error Rust can’t save you from.