I know that the biggest difference between GC and ARC is that GC is a run-time process, while ARC works at compile time. Therefore, when working with ARC, the developer must take care of memory in some scenarios.
However, according to this , there is no space left for SWFT to interact with the developer .
So how do they do it? Do they have runtime to clear memory or something else?
Swift uses ARC just like Objective-C does. ARC is discussed in detail .
In short:
I know that the biggest difference between GC and ARC is that GC
Note that ARC is a form of GC.
is runtime, while ARC works at compile time.
GC, ARC , . ARC , , , , ( ).
ARC .
. , , .
ARC, , ARC . , ., , ARC , , . , , ., ARC , , , . , , , , ., , , ARC , , . ARC , ., , , , , . "" , , , .
ARC
, , ARC . , .
, , ARC , , . , , .
, ARC , , , . , , , , .
, , , ARC , , . ARC , .
, , , , , . "" , , , .
https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/AutomaticReferenceCounting.html
Source: https://habr.com/ru/post/1543090/More articles:rails - helps to use models in subfolders - ruby | fooobar.comIs it possible for a function to accept only a limited set of types for a given argument? - c ++What is the use of the second parameter std :: enable_if? - c ++How to use Swift in a terminal - swiftSQL Server: serial line issue - sql-serverWhy are Tiles used together with Timeleaf? - springThe block level element fills the 100% overflow width-x: scroll container - htmlHTML5 canvas vs Dom appending real-time data building efficiency - javascriptstart graph chart on the right side - javascriptУстановка нескольких версий R - linuxAll Articles