4 ms·
Just because you don't know more languages with reference counting doesn't mean there are none. Perl, Python and Ruby use this technique (Python and Ruby additi
by dozzie 12y ago
Just because you don't know more languages with reference counting doesn't
mean there are none. Perl, Python and Ruby use this technique (Python and Ruby
additionally use GC). I wouldn't be surprised learning that embeddable
languages like Lua also use refcount.
It's just that refcount has its serious drawbacks, for example inability to
reclaim the memory in the case of cyclic data structures.