News for hackers. Stuff that matters.
Re:The Cost of a Closure in C by gpderetta on Thursday December 11, 2025 @06:41AM (#46230173)
> 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!

well regular functions decay to function pointers. You could have the moral equivalent of std::function_ref (or similarly, borland __closure) in C of course and have closures decay to it.

There are no comments on this comment yet.