Re:Rust Is Hard, Or: The Misery of Mainstream Programming
by pkolaczk on Friday June 03, 2022 @09:37AM
(#31608076)
This handler dispatcher problem gets trivial if you do it in unsafe mode. Just transmute all lifetimes to 'static and call it a day. That is what you do in C++ all the time (implicitly). So C++ version of it would be easier to get compiling, but harder to get right - because you'd have to prove lifetimes are correct anyways.
[ Parent
| on HN ]
There are no comments on this comment yet.