Re:Rust RAII is better than the Haskell bracket pattern
by cesarb on Tuesday October 09, 2018 @06:20AM
(#18174659)
> But you're right that if you rely on the default unwinding behavior
You do rely on the default unwinding behavior anyway at least for `cargo test`: the test framework depends on being able to catch the unwinds from `assert_eq!` and similar.
You do rely on the default unwinding behavior anyway at least for `cargo test`: the test framework depends on being able to catch the unwinds from `assert_eq!` and similar.