logoalt Hacker News

bryanlarsen • today at 11:18 AM • 2 replies • view on HN

I've written dozens of custom Drop implementations. Well, many of them are named cleanup because of the async Drop mess in Rust, but...


Replies

dwattttt • today at 12:26 PM

How many of them only conditionally implement Drop, based on a generic param lifetime?

➕ show 1 reply
jvanderbot • today at 12:29 PM

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.