[Solved] Why are function objects better than function pointers?
As far as function pointers in C go, you need to pass the state as an extra parameter. That’s in opposition to languages like python, javascript or C++ that have closures. And that means storage duration needs to be considered for that extra structure. C programmers do make use of function pointers. And you can’t … Read more