|
|
|
|
|
by RootDynasty
4064 days ago
|
|
In my opinion the most important part of functional programming is the purity of functions. There is a great quote about this on one of the Clojure doc pages "If a tree falls in the woods, does it make a sound?
If a pure function mutates some local data in order to produce an immutable return value, is that ok?" Function purity enforces that mutations are localized to small areas of the code, while maintaining composition. |
|