Re:CPU Cache Essentials
by voidlogic on Thursday June 26, 2014 @11:27AM
(#7950136)
Rust has optional garbage collection
[ Parent
| on HN ]
There is a library type that does reference counting. It's not built into the language, beyond happening to be in the standard libraries.
It doesn't. There is a type called Gc that may be garbage collected in future, but at the moment it is just a bad reference counted pointer (the Rc type is better if you want reference counting). And it's not even guaranteed that a GC will ever be implemented, Rust provides other abstractions so GC would be rarely used even if it was implemented.