Hacker News new | ask | show | jobs
by vbezhenar 454 days ago
What's "drop trait" for C? There are no any traits in C.
1 comments

Parent post said Rust.

edit: TIL: Looks like the [drop trait][1] is an opt-in destructor that the Rust compiler understands.

[1]: https://doc.rust-lang.org/nomicon/dropck.html