4 ms·
Is there a /r/nottheonion but for programming? You can't make this stuff up. "In C++20 stateless lambdas are default constructible and assignable which allows
by AlexanderDhoore 6y ago
Is there a /r/nottheonion but for programming? You can't make this stuff up.
"In C++20 stateless lambdas are default constructible and assignable which allows to use a type of a lambda to construct/assign it later. With Lambdas in unevaluated contexts we can get a type of a lambda with decltype() and create a variable of that type later."
"Sometimes generic lambdas are too generic. C++20 allows to use familiar template function syntax to introduce type names directly."
- petters 6y ago[](){}; was already valid C++ syntax. Is []<>(){}; now valid? Feels right to me! Edit: This is a pretty strong new standard overall. Concepts and modules are something C++ needs.