Y
Hacker News
new
|
ask
|
show
|
jobs
by
matt_kantor
3332 days ago
The difference is that Go's `defer` is explicitly written out in the relevant scope, while Rust's `Drop` is implicit and defined elsewhere.
1 comments
steveklabnik
3332 days ago
There's a "scopeguard" crate that uses Drop to make it explicit.
link