|
|
|
|
|
by baby
1119 days ago
|
|
Ah I see, I didn't know Swift was garbage collected. That makes sense. EDIT: wait, I'm reading that swift does not have a garbage collector. I guess I don't see how it differs from Rust then. EDIT2: ah I see, everything's a smart pointer basically and memory's released at the end (RAII-style), whereas Rust has the borrow checker (but it's still RAII-style). I guess both implement RAII ideas, but Rust seems to do it at compile time and Swift at run time. |
|