Distinctive traits of the functional languages

后端 未结 7 1845
时光取名叫无心
时光取名叫无心 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:34

    Functional Programming is a style, not a language construct

    Most functional languages have some common principles:

    • Immutable objects
    • Closures and anonymous functions
    • Generic algorithms
    • Continuations

    But the most important principle is that they usually force you to write in a functional style. You can program in a functional style in most any language. C# could be considered "functional" if you write code like that, as could any other language.

提交回复
热议问题