4 ms·
Well, that's true to a certain extent. Closures and such really just don't make sense in a C context, especially with manual memory management. Function pointer
by Locke1689 16y ago
Well, that's true to a certain extent. Closures and such really just don't make sense in a C context, especially with manual memory management. Function pointers are probably the most implementation friendly solution in that problem space. I think Apple's blocks are the closest that we'll come, but I'd be hesitant to use them in certain subdomains.
Java, on the other hand, has a completely different application space and feature set. First class functions and anonymous functions seem like natural additions to the language.