Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
zarzavat
· 11mo ago · 0 comments
I'm confused why drop() is a function that you have to import inside the closure instead of a method.
Comments
[–]
W4G1
11mo ago
It was a design decision to make the syntax feel as familiar to Rust as possible. But I do agree that it's a bit verbose and that it won't hurt to add a .dispose() handle to the objects themselves.