News for hackers. Stuff that matters.
Re:Lambda expression comparison between C++11, C++14 and C++17 by frozenport on Saturday May 14, 2016 @05:41PM (#11698166)
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.
Re:Lambda expression comparison between C++11, C++14 and C++17 by rileymat2 on Saturday May 14, 2016 @05:53PM (#11698216)
I think you have issues with reference capture groups and object lifetimes. Or alternatively value capture groups and object slicing.
Re:Lambda expression comparison between C++11, C++14 and C++17 by vvanders on Saturday May 14, 2016 @05:43PM (#11698172)
Yeah, 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.