3 ms·
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/
by theCodeStig 6y ago
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.