3 ms·
Yes. It's a kind of a garbage collector for people who don't need garbage collector. If you need to do a lot of small allocation or have many circular referenc
by scotty79 5y ago
Yes. It's a kind of a garbage collector for people who don't need garbage collector.
If you need to do a lot of small allocation or have many circular references that you want to drop wholesale then you need a proper GC.
Even in some other cases you might benefit from proper GC. However Rust doesn't have a standard proper GC yet. It might have it as library some day. Some simple ones like https://docs.rs/gc/0.4.1/gc/ https://docs.rs/gc/0.4.1/gc/ already exist.
But Rust is such a great language for many reasons. It would be a shame to not use it just because it doesn't have a great GC yet or because you don't have patience for borrow checker.