Sign in
Log inSign up

Why have garbage collection?

Abc's photo
Abc
·Jun 19, 2018

I know what it is and why it's there! But why should it be? Why can't such programming languages clear a value from memory once it goes out of scope?
Why have a background garbage collector when it's implications are known? Why not be like Rust?