Hacker News new | ask | show | jobs
by n144q 562 days 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.

1 comments

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.

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