Hacker News new | ask | show | jobs
by RustSupremacist 240 days ago
Rust still has garbage collection if you use Arc and Rc. Not a garbage collector but this type of garbage collection.
2 comments

I'm going to veer into no-true-scottsman territory for a bit and claim that those don't count since they cannot collect cycles (if I'm wrong and they implement e.g. trial-deletion, let me know). This isn't just academic, since cyclic data-structures are an important place where the borrow-checker can't help you, so a GC would be useful.
You mean Drop, which is entirely predictable and controlled by the user?