Comment by bryanlarsen
11 days ago
I've written dozens of custom Drop implementations. Well, many of them are named cleanup because of the async Drop mess in Rust, but...
11 days ago
I've written dozens of custom Drop implementations. Well, many of them are named cleanup because of the async Drop mess in Rust, but...
How many of them only conditionally implement Drop, based on a generic param lifetime?
Why would you ever conditionally custom impl Drop? I don't think I've ever seen that pattern, and I can't think of a use case.
Therefore explaining why the bug hadn't been hit in practice for 11 years.
11 replies →
OK. That's good to know. I'm not sure why sharing our professional experience with this type of code is controversial, but here we are.