Richard K Miller wrote:
Has everyone heard of a "fluent interface"? It's a term coined by
Martin Fowler that I just learned today. (Wondering if I've been in
the dark about this.)
This is very common for string objects. Consider for example the old Qt3
QString class:
QString foo = "my foo bar";
foo.replace( "foo", "biz" ).replace( "bar", "baz" ).upper();
// foo is now "MY BIZ BAZ"
Can be quite handy. Often times when you would have otherwise returned
void, consider returning a reference to the this pointer instead.
--Dave
_______________________________________________
UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net