Re:The Cost of a Closure in C
by sirwhinesalot on Monday December 15, 2025 @04:52AM
(#46272369)
That actually goes a bit further than my suggestion, since it allows the closure to be returned with its unique type. I'm not a fan of introducing these "unnamable types" to C since it means the closure producing function cannot be declared in a header.
I do like the trampoline trick in 3.2.4, however, neat alternative to a fat pointer!
https://thephd.dev/_vendor/future_cxx/papers/C%20-%20Functio...