Programming

7 thoughts
last posted Jan. 27, 2016, 10:36 a.m.

2 earlier thoughts

0

Benefits of using pure functions:

  • Portable (because it has a clear interface and boundaries)
  • Testable (just need to test what goes in and what comes out)
  • Easier to reason about (because of clear boundaries)
  • Thread safe
  • Easy to cache (https://en.wikipedia.org/wiki/Memoization)

4 later thoughts