Why Functional Programming Matters

时间:2014-09-17 01:27:47
【文件属性】:

文件名称:Why Functional Programming Matters

文件大小:162KB

文件格式:PDF

更新时间:2014-09-17 01:27:47

Functional programming

As software becomes more and more complex, it is more and more important to structure it well. Well-structured software is easy to write, easy to debug, and provides a collection of modules that can be re-used to reduce future programming costs. Conventional languages place conceptual limits on the way problems can be modularised. Functional languages push those limits back. In this paper we show that two features of functional languages in particular, higher-order functions and lazy evaluation, can contribute greatly to modularity. As examples, we manipulate lists and trees, program several numerical algorithms, and implement the alpha-beta heuristic (an algorithm from Artificial Intelligence used in game-playing programs). Since modularity is the key to successful programming, functional languages are vitally important to the real world.


网友评论

  • 我为了了解函数编程而下载的。