Remix.run Logo
n144q 10 months ago

Swift uses garbage collection (I know, arc, but that's still garbage collection), so it more or less is in the same category as Go. And I don't see people choosing Swift over Go any time soon.

C++ and Rust are a different thing.

mikestew 10 months ago | parent [-]

Swift uses garbage collection (I know, arc, but that's still garbage collection)

That’s simply not true, starting with ARC being compile-time and GC being run-time.

trealira 10 months ago | parent [-]

Reference counting very much incurs a runtime cost; it's not just a compile time abstraction, like borrow-checking in Rust.