3 ms·
What do you mean? Only time you can mess up a lambda is if a pointer that you're using gets changed. And this kind of dupicate ownership is a general problem wi
by frozenport 10y ago
What do you mean? Only time you can mess up a lambda is if a pointer that you're using gets changed. And this kind of dupicate ownership is a general problem with pointers.
- vvanders 10y agoYeah, I'm not following as well. I've used Lambdas in C++ pretty heavily and they're really well done and thought out. FWIW nothing about them is much different from Rust's approach(anon struct + fn) it's all the ownership guarantees which give Rust it's safety.
- rileymat2 10y agoI think you have issues with reference capture groups and object lifetimes. Or alternatively value capture groups and object slicing.