Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Just to be clear (and to check this myself -- I'm just starting to learn Rust), a five second gap is actually possible right? Say I use a socket, stop using it, don't call drop(socket), and I don't leave the scope for 5 seconds because I'm busy doing something.


Yeah, if you hold on to the thing in your scope, it won't go out of scope and won't be disposed of.


Yes, you are correct.

What I was trying to explain is that the timing is deterministic and immediate. People are used to unpredictable GC and rightly don't want to trust it with thing like this.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: