What is difference between functional and imperative programming languages?

后端 未结 10 2171
庸人自扰
庸人自扰 2020-12-12 08:45

Most of the mainstream languages, including object-oriented programming (OOP) languages such as C#, Visual Basic, C++, and Java were designed to primarily support imperative

10条回答
  •  忘掉有多难
    2020-12-12 09:40

    • Imperative Languages:

    • Efficient execution

    • Complex semantics

    • Complex syntax

    • Concurrency is programmer designed

    • Complex testing, has no referential transparency, has side effects

    • Has state

    • Functional Languages:

    • Simple semantics

    • Simple syntax

    • Less efficient execution

    • Programs can automatically be made concurrent

    • Simple testing, has referential transparency, has no side effects

    • Has no state

提交回复
热议问题