Method chaining: Difference between revisions

Content deleted Content added
tidy tagged issue, rm huge list of unreferenced cruft
Rescuing 1 sources and tagging 0 as dead. #IABot (v1.6.2)
Line 2:
 
'''Method chaining''', also known as '''named parameter idiom''', is a common [[Syntax (programming languages)|syntax]] for invoking multiple method calls in [[Object-oriented programming|object-oriented programming languages]]. Each method returns an object, allowing the calls to be chained together in a single statement without requiring variables to store the intermediate results.<ref>{{cite web
| accessdate = 2011-04-13
| ___location = http://firstclassthoughts.co.uk/
| publisher = First Class Thoughts
| title = Applying Method Chaining
| quote = In order to simplify repeated object interactions on the same object the old trick Method Chaining originating the world of Smalltalk should be enforced. The idea is to let methods return this rather than void, thus affecting especially set() and add() methods. Method chaining arose during the designers of Smalltalk pursuit to minimize the number of keywords in the language, which lead to the discovery that void is an unnecessary keyword!.
| url = http://firstclassthoughts.co.uk/java/method_chaining.html}}</ref>
|deadurl = yes
|archiveurl = https://web.archive.org/web/20110222112016/http://firstclassthoughts.co.uk/java/method_chaining.html
|archivedate = 2011-02-22
|df =
}}</ref>
 
== Rationale ==