Re:Rust means never having to close a socket
by solipsism on Tuesday October 07, 2014 @01:33PM
(#8422562)
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.
[ Parent
| on HN ]
Re:Rust means never having to close a socket
by ben0x539 on Tuesday October 07, 2014 @01:42PM
(#8422631)
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.