C++ lambdas can be used to achieve a similar result, not as pretty though https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines... But in general I agree!
The fact that you can't return from there makes for a huge difference, though,
The fact that you can't return from there makes for a huge difference, though,