News for hackers. Stuff that matters.
Re:Under the hood of C++ lambdas and std::function by evincarofautumn on Monday March 28, 2016 @06:35AM (#11373513)
The key difference being that a lambda is an expression, while a block is not, unless you use GCC’s statement-expression syntax of “({…})”.
Re:Under the hood of C++ lambdas and std::function by catnaroek on Monday March 28, 2016 @01:38PM (#11375799)
Oh, I forgot that, you're absolutely right. I'm getting too used to languages where everything is an expression. :-)