Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by hedora

3 months ago

Pin and unpin handle circular references, sort of.

7 comments

hedora

Reply

ycombinatrix  3 months ago

std::rc::Weak?

  • tonyedgecombe  3 months ago

    The GP does mention Rc/Arc.

    • ycombinatrix  3 months ago

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

      3 replies →

SkiFire13  3 months ago

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

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities