News for hackers. Stuff that matters.
Re:Lambda expression comparison between C++11, C++14 and C++17 by jlebar on Sunday May 15, 2016 @05:23AM (#11700131)
> You state what variables are being captured by just using them in the lambda body.

Wow, have you never spent a week debugging a JavaScript memory leak?

Re:Lambda expression comparison between C++11, C++14 and C++17 by masklinn on Sunday May 15, 2016 @08:05AM (#11700602)
No. What I have done on the other hand was add unused lexical variables to an anonymous function so the runtime wouldn't optimise them out of the closure and I could still see them in the debugger.