Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What's "drop trait" for C? There are no any traits in C.


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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: