commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwaldh...@apache.org
Subject cvs commit: jakarta-commons-sandbox/functor/xdocs index.xml
Date Thu, 13 Mar 2003 01:00:45 GMT
rwaldhoff    2003/03/12 17:00:44

  Modified:    functor/xdocs index.xml
  Log:
  some doc enhancements
  
  Revision  Changes    Path
  1.5       +26 -1     jakarta-commons-sandbox/functor/xdocs/index.xml
  
  Index: index.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/functor/xdocs/index.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- index.xml	5 Mar 2003 17:15:50 -0000	1.4
  +++ index.xml	13 Mar 2003 01:00:44 -0000	1.5
  @@ -10,7 +10,11 @@
       <section name="Functor: Functions as Objects">
         <p>
            A <em>functor</em> is a function that can be manipulated 
  -         as an object.  Functors are a very old and very common software design
  +         as an object.  
  +      </p>
  +<!--
  +      <p>
  +         Functors are a very old and very common software design
            concept, and appear in many languages in many forms.  For example, 
            functors appear in:
         </p>
  @@ -26,10 +30,31 @@
            <li>Ruby as blocks</li>
            <li>etc.</li>
         </ul>
  +-->      
         <p>
            In Java, functors are typically implemented as interfaces defined 
            by a single, generic member function, and that is the approach taken
            here.
  +      </p>
  +      <p>
  +         Functors support and encourage a number of powerful programming 
  +         techniques including:
  +      </p>
  +      <ul>
  +         <li>programming in a functional style</li>
  +         <li>higher order functions</li>
  +         <li>internal iterators</li>
  +         <li>reuse and specialization through composition rather than inheritance
and overloading</li>
  +         <li>generic "callback" or "extension point" APIs</li>
  +         <li>generic "filters" or predicate APIs</li>
  +         <li>
  +            many "behavioral" design patterns, such as 
  +            Visitor, Strategy, Chain of Responsibility, etc.
  +         </li>
  +      </ul>
  +      <p>
  +         See the <a href="examples.html">examples</a> for more information
on some of 
  +         these techniques.
         </p>
       </section>
       <section name="Overview">
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message