3 ms·
That is tricky. It's also something you need to know when working with closures in Rust, which are for the same reason much harder to work with and understand t
by justinpombrio 4y ago
That is tricky. It's also something you need to know when working with closures in Rust, which are for the same reason much harder to work with and understand than closures in other languages. I wonder whether it would have been better design for Rust closures to require an explicit capture list, like in C++, just to be more explicit about what is happening. (Not sure if/how that would translate to `await`.)
- thinkharderdev 4y agoYeah, I've been stung more than once by the `Fn/FnOnce` distinction