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.
In reply to Re: chaining method calls
by chromatic
in thread chaining method calls
by perrin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |