Garbage collection is exactly why Rust is so cool. It does not have one. Instead, it keeps close track on every variable, and frees it when it completely goes out of scope. And dangling pointers are no problem, since they have references and lifetimes.
Basically Rust has the simple to use and efficient alternative to a garbage collector.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Garbage collection is exactly why Rust is so cool. It does not have one. Instead, it keeps close track on every variable, and frees it when it completely goes out of scope. And dangling pointers are no problem, since they have references and lifetimes.
Basically Rust has the simple to use and efficient alternative to a garbage collector.