2 ms·
Well this seems to me a violation of the spirit of functional programming, even if it's written in a functional programming language. Isolating state is the ke
by jimbokun 2y ago
Well this seems to me a violation of the spirit of functional programming, even if it's written in a functional programming language.
Isolating state is the key principle. Philosophically you could say a program following this principle written in an object oriented or procedural language is more "functional" than a program that passes around a big tangle of state in a single data structure written in a functional language.
- jahewson 2y agoYes, indeed. That’s my point really. Functional programming only delivers its promised benefits in the hands of skilled users. We’re just not used to seeing that given that it’s at a self-selecting crowd. Lambdas, ADTs, immutability - all of these exist in non-functional languages now and it’s great! It seems to me that this may be where the bulk of the value is, rather than functional purity.