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

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).