4 ms·
"pure FP" does not mean only writing in a functional style. Purity refers to referential transparency, ie., functions do not depend on or modify some global sta
by solomonb 2y ago
"pure FP" does not mean only writing in a functional style. Purity refers to referential transparency, ie., functions do not depend on or modify some global state.
- zelphirkalt 2y agoActually even further: They also don't modify/mutate any arguments. If they did, then that could raise problems with concurrency.
- Hendrikto 2y agoI know what purity is. It is a core principle of functional programing. So ”functional“ already implies purity, and ”pure functional“ implies exclusively functional (e.g. Haskell).
- solomonb 2y agoPurity is not a requirement for functional languages. See Ocaml, Erlang, Racket, Scala, Clojure, Common Lisp, etc.