introduction.qbk 1.7 KB

12345678910111213141516171819202122232425262728293031323334
  1. [/==============================================================================
  2. Copyright (C) 2001-2010 Joel de Guzman
  3. Copyright (C) 2001-2005 Dan Marsden
  4. Copyright (C) 2001-2010 Thomas Heller
  5. Distributed under the Boost Software License, Version 1.0. (See accompanying
  6. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  7. ===============================================================================/]
  8. [section Introduction]
  9. [$images/banner.png]
  10. The Phoenix library enables FP techniques such as higher order functions,
  11. /lambda/ (unnamed functions), /currying/ (partial function application) and lazy
  12. evaluation in C++. The focus is more on usefulness and practicality than purity,
  13. elegance and strict adherence to FP principles.
  14. FP is a programming discipline that is not at all tied to a specific language.
  15. FP as a programming discipline can, in fact, be applied to many programming
  16. languages. In the realm of C++ for instance, we are seeing more FP techniques
  17. being applied. C++ is sufficiently rich to support at least some of the most
  18. important facets of FP. C++ is a multiparadigm programming language. It is not
  19. only procedural. It is not only object oriented. Beneath the core of the
  20. standard C++ library, a closer look into STL gives us a glimpse of FP already in
  21. place. It is obvious that the authors of STL know and practice FP. In the near
  22. future, we shall surely see more FP trickle down into the mainstream.
  23. The truth is, most of the FP techniques can coexist quite well with the standard
  24. object oriented and imperative programming paradigms. When we are using STL
  25. algorithms and functors (function objects) for example, we are already doing FP.
  26. Phoenix is an evolutionary next step.
  27. [endsect]