Defining point of functional programming

前端 未结 8 1746
无人及你
无人及你 2020-12-31 01:17

I can enumerate many features of functional programming, but when my friend asked me Could you define functional programming for me? I couldn\'t.

8条回答
  •  庸人自扰
    2020-12-31 01:32

    There are two separate definitions:

    • The older definition (first-class functions) has been given by Chris Conway.

    • The newer definition (avoiding side effects like mutation) has been given by John Stauffer. This is more generally known as purely functional programming.

    This is a source of much confusion...

提交回复
热议问题