My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

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?