Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^10: Mutator chaining considered harmful

by ihb (Deacon)
on Jan 03, 2005 at 20:37 UTC ( [id://419053]=note: print w/replies, xml ) Need Help??


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

He said "the variable name and usage".

His point is that

$foo->bar($x)->baz($y)
can be either
$foo->bar($x); $foo->baz($y); # same object
or
my $bar = $foo->bar($x); $bar->baz($y); # different object
which is the ambiguity he's talking about.

ihb

See perltoc if you don't know which perldoc to read!
Read argumentation in its context!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://419053]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (2)
As of 2024-04-19 18:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found