Hacker News new | ask | show | jobs
by _flux 256 days ago
Well, at times having a parent pointer is rather useful! E.g. a callback registration will be able to unregister itself from everywhere where it has been registered to, upon request. (One would want to use weak references in this case.)
1 comments

Fair point!

Maybe I am just a bit burned by this particular example I ran into (where this pattern should IMO not have been used).