Are side-effects possible in pure functional programming

后端 未结 9 1014
一个人的身影
一个人的身影 2020-12-14 02:53

I have been trying to wrap my head around functional programming for a while now? I have looked up lambda calculus, LISP, OCML, F# and even combinatorial logic but the main

9条回答
  •  一整个雨季
    2020-12-14 03:15

    Functional Programming is about limiting & isolating side-effects, not trying to get entirely rid of them... because you can't.

    ... and yes I find FP useful (certainly with Erlang anyways): I find it is easier to get from "idea" to "program" (or problem to solution ;)... but of course that could just be me.

提交回复
热议问题