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

Pin and unpin handle circular references, sort of.


std::rc::Weak?


The GP does mention Rc/Arc.


Rc & Arc don't have the same behavior as Weak


Can you use Weak without either Rc or Arc?


not relevant but yes, you can.


Not really, they are just tools to expose circular references (or self-references) that are *already managed by unsafe code*.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: