Comment Comment by sirwhinesalot I think local functions (like the GNU extension) that behave like C++ byref(&) capturing lambdas makes the most sense for C.You can call the local functions directly and get the benefits of the specialized code.There's no way to spell out this function's type, and no way to store it anywhere. This is true of regular functions too!To pass it around you need to use the type-erased "fat pointer" version.I don't see how anything else makes sense for C. parent sirwhinesalot 11 months ago
You can call the local functions directly and get the benefits of the specialized code.
There's no way to spell out this function's type, and no way to store it anywhere. This is true of regular functions too!
To pass it around you need to use the type-erased "fat pointer" version.
I don't see how anything else makes sense for C.