What are advantages & disadvantages of pure functions?

What are advantages & disadvantages of pure functions?



Advantages are:

- they are easy to read and test.
- memoization.
- easy to parallelize

Disadvantage:

- some functions need to perform i/o, which breaks this approach


Learn More :