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

I consider reference to be garbage collection, and so do most CS textbooks. However Rc/Arc/shared_ptr are GC facilities used (often sparingly) inside predominantly non-GC'd languages, so, yeah, I wouldn't say Rust "is" or "has" GC. It has facilities for coping with cleanup, both RAII and GC.


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

Search: