3 ms·
The thing about functional purity is that the point of a lot of programming is to get the side effects.
by LanceH 4y ago
The thing about functional purity is that the point of a lot of programming is to get the side effects.
- packetlost 4y agoI think that's still pretty well-understood. The real draw to FP in general is you reduce the globally modifiable state to be the things that are truly global to an application. For web applications, this may be a database. For systems applications it may be a filesystem.
- valenterry 4y agoThe point of fp is not to get rid of effects, but to make them explicit and better controllable and do that in a consistent way, not on a case by case decision.