What are advantages of functional programming?
-
Functional programming uses pure functions which are easier to debug
-
Program becomes extremely easy to debug/troubleshoot, isolate and find issues
-
Concurrent programming is easier since it follows a predefined execution sequence
-
Testing pure functions and hence functional programs is easier
A pure function is a function which:
- Given the same input, will always return the same output.
- Produces no side effects.
goli202084 Changed status to publish