←back to thread

239 points ivankra | 1 comments | | HN request time: 0.197s | source
Show context
fgallih[dead post] ◴[] No.45945356[source]
[flagged]
chiffaa ◴[] No.45945530[source]
> who in the fuck would write a garbage collector using garbage collected Rust?

Rust is not garbage collected unless you explicitly opt into using Rc/Arc

replies(2): >>45945727 #>>45946167 #
1. gpm ◴[] No.45946167[source]
If you count Rc/Arc as garbage collection you should count RAII + The Borrow Checker (i.e. all safe rust) as garbage collection too IMHO. It collects garbage just as automatically - it just does so extremely efficiently.

That said I tend to count neither. Garbage collection to me suggests you have something going around collecting it, not just you detect you're done with something when you're done with it and deal with it yourself.