> Isn’t reference counting a type of garbage collection?
Reference counting leads to memory leaks if cycles occur. Garbage collection algorithms don't have this problem.
Reference counting leads to memory leaks if cycles occur. Garbage collection algorithms don't have this problem.
https://en.m.wikipedia.org/wiki/Garbage_collection_(computer...
Reference counting is a type of garbage collection.
"Garbage collection vs. ARC"
https://atp.fm/205-chris-lattner-interview-transcript#gc (Hacker News: https://news.ycombinator.com/item?id=31139610)
This (sub)headline only makes sense if garbage collection and ARC are different concepts.