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 deathanatos

1 hour ago

It's still done. It's not uncommon to see that in Rust:

  fn foo(x: &Arc<T>)

…quite literally borrows the count in the refcount-ed thing.

I think you can find similar things in CPython, on the C side of things.

0 comments

deathanatos

Reply

No comments yet

Contribute on Hacker News ↗

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities