Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^7: Mutator chaining considered harmfulby DrHyde (Prior) |
on Jan 04, 2005 at 10:03 UTC ( [id://419198]=note: print w/replies, xml ) | Need Help?? |
If you don't know what a method is returning, it doesn't help to store all those intermediate values in variables or throw them away or whatever. Whatever style you use, you need to read the documentation.
The only valid argument I can see against method chaining (and this applies to all method chaining, not just mutator chaining) is that intermediate failures are hard to catch.
In Section
Meditations
|
|