2 ms·
? C++ and Objective C inherited C's memory model and thus don't have a good memory management option. Rust is explicitly a systems language, meaning stronger m
by mcguire 8y ago
?
C++ and Objective C inherited C's memory model and thus don't have a good memory management option. Rust is explicitly a systems language, meaning stronger memory models are out of scope, and then inherited most of C++'s idioms.
Other than those, what popular languages are specifically choosing reference counting as a primary GC method?
- steveklabnik 8y agoSwift.
- mcguire 8y agoWhich inherits its memory management from Objective C.
- pjmlp 8y agoSwift requires reference counting for compatibility with Objective-C code. Apple could have gone the .NET way (RCW) to interface with COM reference counting, but that naturally would complicate the bindings to Objective-C runtime and existing libraries.