News for hackers. Stuff that matters.
Re:Rust means never having to close a socket by kibwen on Tuesday October 07, 2014 @01:20PM (#8422462)
In fact, the `drop` function is totally trivial. It's just a function that takes ownership of a thing, then does nothing with it whatsoever. In other words, the function body is entirely empty! :)

https://github.com/rust-lang/rust/blob/master/src/libcore/me...

Re:Rust means never having to close a socket by portmanteaufu on Tuesday October 07, 2014 @03:20PM (#8423355)
Ha! I've been using this function for ages and always assumed it was a compiler built-in. I love that it's just that simple.
Re:Rust means never having to close a socket by Double_Cast on Tuesday October 07, 2014 @11:02PM (#8425133)
That's just too perfect. Of all things, your comment has raised my opinion of Rust the most.