Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> One thing in reference counting’s favor is that it is hard to screw up.

Well, circular references will cause your RC objects to never ever drop. So then you have to start using a bunch of Weak references. And it can very quickly become a confusing and hard to understand mess.

The cost of a memory leak is significantly lower than the cost of a use after free. But disentangling the graph of refcounts can be super painful.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: