Functional programming: Difference between revisions

no edit summary
m (Added TR link)
No edit summary
Line 7:
* It's easy to '''refactor''' similar pieces of code, because any subexpression can be replaced by a variable bound at the outside.
 
This leads to a coding style which is very different from more traditional languages. [[Iteration]] is typically replaced by [[tail recursion:Category:Recursion|tail-recursion]]. Lists become a very important datatype. Code often consists of a composition of simpler blocks, which makes it look similar to [[declarative programming]].
 
Most functional programming languages (FPLs) are related to the [[wp:Lambda_Calculus|lambda calculus]], which makes the specification of their formal semantics simpler.
Anonymous user