Re:I love coding in C
by amiga_500 on Thursday December 26, 2019 @10:11AM
(#21884296)
Wouldn't you just use a lambda nowadays?
[ Parent
| on HN ]
Not in C you wouldn't.
You can with Clang’s blocks extension: https://en.wikipedia.org/wiki/Blocks_(C_language_extension)
Sure, but the parent post was saying they didn't like nested function handling in c++.
Nested functions don't exist in C++ (except for lambdas).