News for hackers. Stuff that matters.
Re:Generics and Compile-Time in Rust by saghm on Tuesday June 16, 2020 @11:48AM (#23540569)
> That's exactly the right solution to your problem. It's not a workaround. It is what you need

Yep, I agree! To clarify, the issue for me isn't having to use trait objects like this, it's the ergonomic issues that my parent comment brought up, e.g. not being able to require `EventHandler: Clone`. I'm not opposed to trait objects themselves; I just wish they were easier to use.

There are no comments on this comment yet.