|
|
|
|
|
by Joker_vD
1883 days ago
|
|
> Reference cycles are IMHO a non-issue in practice Any double-linked structure makes it very much an issue. And before you reply with "who uses linked lists anyway", consider the publisher/listener pattern: a publisher has the list with its listeners, a listener usually knows what publisher(s) it's subscribed to. |
|
2. A lot of stuff that need doubly-linked lists is enclosed in libraries anyways, so you don't need to worry about it.
3. Reference cycles are ugly even in GCed environments and generally should be avoided. They make programs hard to understand and follow.