[Home] [By Thread] [By Date] [Recent Entries]


At 2:25 PM +0100 9/23/02, Bill de hÓra wrote:

>If that's an argument from thread safety (is it?),

No, it's not. It comes from JavaBeans more than anywhere. And also
from the principle of least surprise. I find mutators that return
non-void very surprising. Of course, if this pattern became more
common, it might be less surprising.

>for anyone that's interested: the book "a little java, a few patterns"
>is an interesting counterpoint to this mutators return void argument. A
>nice read.

I'll check it out if I can find a copy.
--

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo@m... | Writer/Programmer |
+-----------------------+------------------------+-------------------+
|          XML in a  Nutshell, 2nd Edition (O'Reilly, 2002)          |
|              http://www.cafeconleche.org/books/xian2/              |
|  http://www.amazon.com/exec/obidos/ISBN%3D0596002920/cafeaulaitA/  |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java News:  http://www.cafeaulait.org/      |
|  Read Cafe con Leche for XML News: http://www.cafeconleche.org/    |
+----------------------------------+---------------------------------+

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member