“Functional programming” has a clear meaning, but does “functional language”?

后端 未结 10 2057
悲哀的现实
悲哀的现实 2021-02-01 16:12

I understand very clearly the difference between functional and imperative programming techniques. But there\'s a widespread tendency to talk of \"functional languages\

10条回答
  •  清歌不尽
    2021-02-01 16:19

    You can do functional style programming in any language. I try as much as possible.

    Python, Linq all promote functional style programming.

    A pure functional language like Haskell requires you to do all your computations using mathematical functions, functions that do not modify anything, they just return values.

    In addition, functional languages typically allow you to write higher order functions, functions that take functions as arguments and/or return types.

提交回复
热议问题