Higher order functions in C

后端 未结 8 1615
小鲜肉
小鲜肉 2020-12-05 19:31

Is there a \"proper\" way to implement higher order functions in C.

I\'m mostly curious about things like portability and syntax correctness here and if there are mo

8条回答
  •  伪装坚强ぢ
    2020-12-05 19:51

    Practically any interesting higher order function application requires closures, which in C entails the laborous and error-prone routine of manually defining and filling struct function arguments.

提交回复
热议问题