DAY #61

Swift does not have garbage collection. Instead it uses ARC, which means once an object stops being referenced, it gets deallocated. Swift developers should be careful to not accidentally create a retain cycle.

Yes, ARC is considered to be garbage collection by some people, however I’m not really knowledgeable to make an opinion on what it should be classified as - for right now just remember Swift uses ARC

Originally published 10/16/2021 @ https://pittcsc.org/ Discord

Published here on 09/20/2022. Blog published date reflects the original date of publication.