This enables a programmer to implement fluent interfaces natively.
In software engineering, a fluent interface (as first coined by Eric Evans and Martin Fowler) is a method for constructing object oriented APIs, where the readability of the source code is close to that of ordinary written prose.
A fluent interface is normally implemented by using method chaining to relay the instruction context of a subsequent call (but a fluent interface entails more than just method chaining The term "fluent interface" was coined in late 2005, though this overall style of interface dates to the invention of method cascading in Smalltalk in the 1970s, and numerous examples in the 1980s.
This creates a lot of code and makes it difficult to see what exactly is happening here.
The Packer class, visible at provides a Fluent mechanism for using this class so that you would instead write: There are many places where Fluent APIs can greatly simplify how software is written and help create an API language that helps users be much more productive and comfortable with the API because the return value of a method always provides a context for further actions in that context.
Stepping through a single-line statement in a debugger may also be less convenient.
Another issue is that it may not be clear which of the method calls caused an exception, in particular if there are multiple calls to the same method.
A common use of the fluent interface in C is the standard iostream, which chains overloaded operators.
The following is an example of providing a fluent interface wrapper on top of a more traditional interface in C : The fluflu annotation processor enables the creation of a fluent API using Java annotations.
Everyone says you're important and nice, but you take second place all the same" [Iris Murdoch The Red and the Green]"Fickle and changeable always is woman" [Virgil Aeneid]"A man is as old as he's feeling,""A woman as old as she looks" [Mortimer Collins The Unknown Quantity]"Men play the game, women know the score" [Roger Woddis]"A complete woman is probably not a very admirable creature.