3 ms·
I am not the only one who wants nested functions and function literals (lambdas) in C (as in basically any other modern language) and I explained every time tha
by uecker 25d ago
I am not the only one who wants nested functions and function literals (lambdas) in C (as in basically any other modern language) and I explained every time that trampolines are not needed for this. It is frankly quite tiring that every time this topic comes up, still someone incorrectly claims that we can not have nested functions because of trampolines, or makes some other incorrect claim on how GCC implements nested functions.
BTW: I also very carefully analyzed all the semantic differences, which led me to the conclusion that putting C++ lambda semantics into C would be a bad idea. one can read this here: https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3654.pdf https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3654.pdf
I also do not understand why you think the generated assembly needs to be identical, or why this is a "rather important difference".