What tools are there for functional programming in C?

后端 未结 13 834
长情又很酷
长情又很酷 2021-01-29 17:18

I\'ve been thinking a lot lately about how to go about doing functional programming in C (not C++). Obviously, C is a procedural language and doesn\'t really support f

13条回答
  •  佛祖请我去吃肉
    2021-01-29 18:00

    What is it about C that you want to make functional, the syntax or the semantics? The semantics of functional programming could certainly be added to the C compiler, but by the time you were done, you'd essentially have the equivalent of one of the existing functional languages, such as Scheme, Haskell, etc.

    It would be a better use of time to just learn the syntax of those languages which directly support those semantics.

提交回复
热议问题