Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Reference counting is a type of garbage collection. Of course Rust isn't a garbage collected language, but you can kind of use it as one.


> Reference counting is a type of garbage collection.

I'm well aware, or I wouldn't have brought Those types up, obviously.

But there's a vast difference between a language's memory management/type system being intrinsically Garbage Collected and a couple special use types hoisting that functionality.


If you want to go that way, C++ has shared_ptr and can also be a garbage collected language. It is kind of missing the point though.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: