in reply to chaining method calls
I like it. It feels very Smalltalky. You're sending a bunch of messages to the object, so why repeat the invocant? Expressions have results, so why not use them?
I co-opted this in Test::MockObject quite some time ago. It works well for accessors there. I don't know if I'd use it elsewhere.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: chaining method calls
by dws (Chancellor) on Jun 12, 2003 at 03:55 UTC | |
by adrianh (Chancellor) on Jun 12, 2003 at 09:53 UTC | |
by perrin (Chancellor) on Jun 12, 2003 at 20:24 UTC | |
by Ovid (Cardinal) on Jun 12, 2003 at 21:06 UTC | |
by dws (Chancellor) on Jun 12, 2003 at 21:12 UTC | |
by BUU (Prior) on Jun 12, 2003 at 17:38 UTC |