3 ms·
> That reference counting is done at runtime. I thought Swift uses ARC just like Objective-C? The compiler elides much of the reference counting, even across i
by throwup238 1y ago
> That reference counting is done at runtime.
I thought Swift uses ARC just like Objective-C? The compiler elides much of the reference counting, even across inlined functions. It’s not like Python or Javascript where a variable binding is enough to cause an increment (although IIRC the V8 JIT can elide some of that too).
I don’t disagree that it’s a runtime GC but there’s a bit of nuance to its implementation that resists simple categorization like that.