Remix.run Logo
▲ bryanlarsen 4 hours 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...

▲dwattttt 2 hours ago | parent | next [-]

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

▲Xirdus 2 hours ago | parent [-]

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.

▲jvanderbot 2 hours ago | parent | prev [-]

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.