i don't actually see them as anything difficult. arguments go in, outputs come out. there is a bit of sorcery if you mean C++ lambdas (does C have lambdas?) with closures and stuff, but it's not difficult to get a grasp of the general idea.
I still think it's a bit of magic, because anonymous functions don't have a name. That's like talking to someone without knowing his name, while being in a crowd or far away from each other.
i think of it more like phone numbers. you don't have to know the name of the person you're calling, you only need a way to communicate with them. if you have an array of lambdas, for example, the index is the phone number.
View all comments
2
u/das_menschy Oct 14 '26
And you didn't even mention lambda functions! That's sorcery!