Anonymous user
Category:Programming paradigm/Functional: Difference between revisions
Category:Programming paradigm/Functional (view source)
Revision as of 09:13, 23 July 2018
, 5 years agoBroken link repaired
(tightened up language) |
(Broken link repaired) |
||
Line 4:
# This makes dependencies explicit.
# This leads to [http://www.haskell.org/haskellwiki/Referential_transparency referential transparency] -- given the same arguments, a piece of code will always behave identically.
# Coding is '''compositional''' -- any two pieces of code with a matching 'interface', as specified by function domains, can be combined, because no hidden side-effects can intervene. (See [
# It's easy to '''refactor''' similar pieces of code, because any subexpression can be replaced by a variable bound at the outside.
|