Hi, On Wed, May 9, 2012 at 1:19 AM, Günther Schmidt <[email protected]> wrote: > ...From your reply I gather you're involved in Sling > development?...
Yes, I'm a Sling committer - see the list at http://sling.apache.org/site/project-team.html And I wrote most of the code at [1], as you can see from the statistics at [2]. > ...It's just that I have seen some code that is a bit unusual for > Java, ie. methods that "return this", and callers that make ample use of it. > I've seen this quit a lot in Smalltalk code, do some of the Sling developers > have a dark and secret Smalltalk past?... I've been doing programming for quite a while in many different languages so you might find some traces of Smalltalk influences in my programming DNA I guess ;-) In the case of the testing tools' http library at [1] (which is what you're referring to IIUC), that style is required to implement the so-called fluent interfaces of these request helpers. No hidden message, it just felt like the right tool for that job! -Bertrand [1] https://svn.apache.org/repos/asf/sling/trunk/testing/tools/src/main/java/org/apache/sling/testing/tools [2] http://svnsearch.org/svnsearch/repos/ASF/search?path=%2Fsling%2Ftrunk%2Ftesting
