Distinctive traits of the functional languages

后端 未结 7 1721
时光取名叫无心
时光取名叫无心 2021-01-30 14:45

It is known that all functional languages share some basic properties like using functions as basic building block for programs with all the consequences like using recursion in

7条回答
  •  太阳男子
    2021-01-30 15:16

    Fundamental properties?

    • Functional Purity (lack of side-effects)
    • As a tie-in from the above, lack of state.
    • Pattern-matching in functions

    The first is beautiful, the second is an ugly side-effect of the former (pun intended).

    The real-world compensation for lack-of-state is what I find to be the biggest differentiator between functional languages.

    Those few things give lots of freebies. Most of the time, languages handle memoization.

提交回复
热议问题