3 ms·
Agreed - I do not think purity should be core to the definition of what a functional language is.
by whimsicalism 6y ago
Agreed - I do not think purity should be core to the definition of what a functional language is.
- flowerlad 6y agoPure functions (with no side effects or state mutation) is pretty core to functional programming.
- whimsicalism 6y agohttps://en.wikipedia.org/wiki/Functional_programming https://en.wikipedia.org/wiki/Functional_programming > Functional programming is sometimes treated as synonymous with purely functional programming, a subset of functional programming which treats all functions as deterministic mathematical functions, or pure functions. When a pure function is called with some given arguments, it will always return the same result, and cannot be affected by any mutable state or other side effects. It is a closely associated idea, but it is not necessarily "core" to what FP is.