Fan uses This return types as Stephan talked about.  They entire
library is written to really promote method chaining.  For example
every method on OutStream returns This.  It works quite nicely in
practice.  Although we still use Void too because I personally think
some things don't make sense to chain.  Plus it gives you the ability
to change your mind about what should be returned in the future (at
least as far as source level compatibility is concerned).

Another thing which really helps promote method chaining is common
conversions in the library on key types such as Str.toInt, List.join,
etc.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to