2 ms·
For a lot of things, I actually like being able to read what the code is doing inline, rather than having to constantly jump around to function definitions. It
by RcouF1uZ4gsC 6y ago
For a lot of things, I actually like being able to read what the code is doing inline, rather than having to constantly jump around to function definitions.
It is a subjective thing, and I think the permissive approach of the language with regard to lambda complexity is a good thing.
The biggest thing that can be done to make that code example more readable is to use coroutines (which were just introduced in C++20) which will get rid of the lambdas.