3 ms·
According to this definition a pure programming language could not have any side effect (Not very useful). Maybe as pure as possible is the only interpretation
by mejutoco 6y ago
According to this definition a pure programming language could not have any side effect (Not very useful). Maybe as pure as possible is the only interpretation that makes sense, then.
- whimsicalism 6y agoAgreed - 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.