Hacker News new | ask | show | jobs
by giornogiovanna 2693 days ago
- Doubly linked lists.

- Cocoa delegates that keep references to some parent of the objects that they're delegates of.

- Some event listeners (in the same way as delegates).

I wouldn't say it's "rare". It popped up pretty often for me when I was writing Objective C.

1 comments

What’s not solved with weak refs?
What's not solved with manual memory management? The point is not that you can't solve it, the point is that reference counting isn't the whole solution for garbage collection unlike a tracing gc for instance.
Weak reference counting is still reference counting.
It can always be solved with weak references.
Only if you know that you haven't solved it already: https://news.ycombinator.com/item?id=19093677