Y
Hacker News
new
|
ask
|
show
|
jobs
by
binary132
2 days ago
yes, just like in Rust, where Drop and constructors are optional idioms.
1 comments
aw1621107
2 days 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).
link