Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re^7: Mutator chaining considered harmful

by DrHyde (Prior)
on Jan 04, 2005 at 10:03 UTC ( #419198=note: print w/replies, xml ) Need Help??

in reply to Re^6: Mutator chaining considered harmful
in thread Mutator chaining considered harmful

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.

  • Comment on Re^7: Mutator chaining considered harmful

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://419198]
Discipulus shall be damned all progs that do not provide different font size!
[Corion]: Yeah - that's one important thing why I like to run my presentations from my browser. Ctrl+ and Ctrl- are incredibly helpful there to make sure everybody can read stuff

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (11)
As of 2017-09-26 09:28 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (293 votes). Check out past polls.