News for hackers. Stuff that matters.
Re:Rust RAII is better than the Haskell bracket pattern by ChrisSD on Tuesday October 09, 2018 @04:15AM (#18174146)
This thread lists all the ways drop may not be called in Rust: https://users.rust-lang.org/t/drop-guarantees/20230/

I'm not sure it's possible to force any code to be run (e.g. a process can be terminated at any time) although a closure might offer slightly stronger guarantees in some situations.

There are no comments on this comment yet.