Thursday, March 11, 2010

Why Functional Programming is Important

Functional programming is very important aspect in programming. It is a new way of thinking. This programming style promotes modularity, reusability, and one of the more important aspect readability. Programs are small in this style of programming like for a given problem if we write a program in any imperative language (C, C++, java) then same program in functional languages( Haskell, Erlang) can be written in 1/5 LOC. Some important points are:
  • We focus on What to do rather than how to do.
  • Program looks like a mathematical expression

No comments:

Post a Comment