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

Also importantly, an Arc<T> can be passed to anything expecting a &T, so you’re not necessarily bumping refcounts all over the place when using an Arc. If you only store it in one place, it’s basically equivalent to any other boxed pointer.


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

Search: