Update of /cvsroot/nice/Nice/web
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv559/web
Modified Files:
index.xml
Log Message:
Expanded some descriptions of the benefits (multi-methods, named arguments).
Index: index.xml
===================================================================
RCS file: /cvsroot/nice/Nice/web/index.xml,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** index.xml 2 Mar 2004 15:18:59 -0000 1.8
--- index.xml 9 Mar 2004 12:25:48 -0000 1.9
***************
*** 49,53 ****
Ever got bored
of writing tons of loops, casts, overloaded methods with default
! values, ... ?
</para>
</listitem>
--- 49,53 ----
Ever got bored
of writing tons of loops, casts, overloaded methods with default
! values, anonymous classes, ... ?
</para>
</listitem>
***************
*** 87,90 ****
--- 87,95 ----
This means that new methods can be defined on classes that
belong to a different package (even in java.*).
+ This allows for a more modular style: you don't need to pack classes with
+ all possibly useful methods, but you can split them into several packages
+ dealing with different aspects. Development can then happen independently
+ if each package.
+ </para><para>
Multi-methods also extend usual methods with the possibility to
dispatch on every argument, instead of only the receiver class.
***************
*** 97,102 ****
<varlistentry><term>Tuples</term><listitem><para>
! This allows in particular methods to return
! several values.
</para>
</listitem>
--- 102,106 ----
<varlistentry><term>Tuples</term><listitem><para>
! This allows in particular methods to return several values.
</para>
</listitem>
***************
*** 108,112 ****
is not present in the call. This is much simpler than in Java, where one
has to write several versions of the method for each combination of
! parameters.
</para>
</listitem>
--- 112,117 ----
is not present in the call. This is much simpler than in Java, where one
has to write several versions of the method for each combination of
! parameters. The names of the arguments can also be specified at the call
! site, improving readability and making argument order irrelevant.
</para>
</listitem>
***************
*** 153,155 ****
</section>
! </page>
\ No newline at end of file
--- 158,160 ----
</section>
! </page>
|