Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
binary132
· 4d ago · 0 comments
yes, just like in Rust, where Drop and constructors are optional idioms.
Comments
[–]
aw1621107
4d ago
Manually implementing the Drop
trait
, perhaps, but the same can't be said for the drop
operation
, which you always get at the end of scope unless you opt out (which is very much a rare thing to do).