You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Kartik edited this page Feb 21, 2018
·
3 revisions
Characteristics of functional langugage
function is first class citizen
immutable variables
lots of pattern matching, guards
no looping structure
currying -> chaining function, function is returned
function does not depend on any other external state
closure
ease of parallelization thanks to lack of mutation
Functional programming can be advantageous when you are going to be performing lots of different operations on data that has a fixed, known amount of variation
In functional languages the program is structured such that it treats computation as the evaluation of mathematical functions. And this is really good for: Gaming and Artificial Intelligence
Functional programming allows you to express computations as combinations of partial functions without ever needing to modify existing values
It operates only on its arguments. There are no hidden states or complex transition rules."
is the ability to develop sane, straightforward, efficient and beautiful concurrent software
Some disadvantages
Using only immutable values and recursion can potentially lead to performance problems, including RAM use and speed