3 ms·
Not so. A refcounting scheme cannot collect circular garbage, garbage collection can. In any case the point is that an object's reference count is a piece of
by btilly 17y ago
Not so. A refcounting scheme cannot collect circular garbage, garbage collection can.
In any case the point is that an object's reference count is a piece of internal state that is externally manipulated.
- kelnos 17y agoYes, I know there are differences, but many of the principles are similar. I decided not to write a treatise on GC ^_~. So this is more of a internal vs. external state thing. Refcounting breaks the purity of the interface and requires you to think about memory management. Sure, I can see why you'd find that unacceptable and would break this model of programming. But I'm a C guy, so that doesn't really bother me, I guess ^_^.