1 | <html> |
---|
2 | <head> |
---|
3 | <!-- Generated by the Spirit (http://spirit.sf.net) QuickDoc --> |
---|
4 | <title>Introduction</title> |
---|
5 | <link rel="stylesheet" href="theme/style.css" type="text/css"> |
---|
6 | <link rel="prev" href="preface.html"> |
---|
7 | <link rel="next" href="quick_start.html"> |
---|
8 | </head> |
---|
9 | <body> |
---|
10 | <table width="100%" height="48" border="0" background="theme/bkd2.gif" cellspacing="2"> |
---|
11 | <tr> |
---|
12 | <td width="10"> |
---|
13 | </td> |
---|
14 | <td width="85%"> |
---|
15 | <font size="6" face="Verdana, Arial, Helvetica, sans-serif"><b>Introduction</b></font> |
---|
16 | </td> |
---|
17 | <td width="112"><a href="http://spirit.sf.net"><img src="theme/spirit.gif" align="right" border="0"></a></td> |
---|
18 | </tr> |
---|
19 | </table> |
---|
20 | <br> |
---|
21 | <table border="0"> |
---|
22 | <tr> |
---|
23 | <td width="30"><a href="../index.html"><img src="theme/u_arr.gif" border="0"></a></td> |
---|
24 | <td width="30"><a href="preface.html"><img src="theme/l_arr.gif" border="0"></a></td> |
---|
25 | <td width="20"><a href="quick_start.html"><img src="theme/r_arr.gif" border="0"></a></td> |
---|
26 | </tr> |
---|
27 | </table> |
---|
28 | <a name="the_phoenix_framework_v1_0"></a> |
---|
29 | <h1>The Phoenix Framework v1.2</h1> |
---|
30 | <a name="preliminary_draft"></a><h4>Preliminary Draft</h4><p> |
---|
31 | February 2001, Joel de Guzman</p> |
---|
32 | <p> |
---|
33 | Functional programming (or FP) is gaining momentum as more programmers discover its power. In its purest form, the paradigms set forth seem to be too detached from what most programmers are already accustomed to. In the point of view of the C or Pascal imperative programmer, for instance, FP techniques and concepts are quite esoteric at first glance. Learning a pure FP language such as <a href="http://www.haskell.org"> |
---|
34 | Haskell</a> for example requires a significant quantum leap.</p> |
---|
35 | <p> |
---|
36 | FP can be taken as a methodology that is not at all tied to a specific language. FP as a programming discipline can be applied to many programming languages. In the realm of C++ for instance, we are seeing more FP techniques being applied. C++ is sufficiently rich to support at least some of the most important facets of FP such as higher order functions. C++ deservedly regards itself as a multiparadigm programming language. It is not only procedural; it is not only object oriented; stealthily beneath the core of the standard C++ library, a closer look into STL gives us a glimpse of a truly FP paradigm already in place. It is obvious that the authors of STL know and practice FP. In the near future, we shall see more FP trickle down into the mainstream. Surely.</p> |
---|
37 | <p> |
---|
38 | The truth is, although FP is rich in concepts new and alien to the typical C++ programmer, we need not shift the paradigm in its entirety wholesale; but rather in small pieces at a time. In fact, most of the FP techniques can coexist quite well with the standard object oriented and imperative programming paradigms. When we are using STL algorithms and functors for example, we are already doing FP.</p> |
---|
39 | <p> |
---|
40 | Phoenix extends the concepts of FP to C++ much further. In a nutshell, the framework opens up FP techniques such as Lambda (unnamed functions) and Currying (partial function evaluation).</p> |
---|
41 | <table border="0"> |
---|
42 | <tr> |
---|
43 | <td width="30"><a href="../index.html"><img src="theme/u_arr.gif" border="0"></a></td> |
---|
44 | <td width="30"><a href="preface.html"><img src="theme/l_arr.gif" border="0"></a></td> |
---|
45 | <td width="20"><a href="quick_start.html"><img src="theme/r_arr.gif" border="0"></a></td> |
---|
46 | </tr> |
---|
47 | </table> |
---|
48 | <br> |
---|
49 | <hr size="1"> |
---|
50 | <p class="copyright">Copyright © 2001-2002 Joel de Guzman<br> |
---|
51 | <br> |
---|
52 | <font size="2">Use, modification and distribution is subject to the Boost Software |
---|
53 | License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at |
---|
54 | http://www.boost.org/LICENSE_1_0.txt) </font> </p> |
---|
55 | </body> |
---|
56 | </html> |
---|