News for hackers. Stuff that matters.
Re:Rust: Dropping heavy things in another thread can make yo... by the8472 on Saturday May 30, 2020 @04:11PM (#23364228)
It does work in rust. you just cannot rely on Drop for memory-safety. If you mem::forget a struct that holds onto some other resource then all that means is that you're committing that resource to the lifetime of the process. We usually call that a leak but it can be intentional.

There are no comments on this comment yet.