Re:Learn Functional Programming Visually
by theCodeStig on Monday February 15, 2021 @01:06AM
(#26139620)
FP can be used for the same solution, for which OOP would be used. In many (if not all) cases, the FP solution would be less complex.
The only caveat is in I/O mechanisms. An IO monad is one way to safely manage IO, but it is not the only way.
But I’d say in general that FP is mostly just an alternative to OOP, maybe even leas than that, not a complete paradigm for writing complex programs. At least if you use a mainstream language, then FP is probably something you do pretty locally.