Defining point of functional programming

前端 未结 8 1747
无人及你
无人及你 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:26

    I have to add that functional programming tends to also abstract control structures of your program as well as the domain - e.g., you no longer do a 'for loop' on some list of things, but you 'map' it with some function to produce the output.

    i think functional programming is a state of mind as well as the definition given above.

提交回复
热议问题