NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Why? (Score:1)
@foo.rotate($x).perl.sayIs there, within every Perl programmer, a Ruby/Smalltalk lover waiting to get out?Re:Why? (Score:1)
Why is it backwards?
Reply to This
Parent
Re: (Score:1)
Re: (Score:1)
In Perl 5, people almost always do either this:
or this:
In both cases, you work on a copy. Almost never do people work directly with the values in
@_. And that works out very well, because you almost never want to pass parameters by reference, almost always by value.But the Perl 6 setup defaults to giving you named aliases (as opposed to the array of aliases you get with Perl
Re: (Score:1)
I actually meant "Why do you say that chained method calls are backwards?" I try to stay out of the perpetual pass by value/pass by reference wars. (I need some sort of self-discipline somewhere.)
Re: (Score:2)
While I knew what you were referring to, I do agree with Aristotle. In trying to work out the "99 Problems", I'm finding "is copy" is getting very annoying. I would be nice to have a simple syntax which would allow this, when it's appropriate.
Now if only I knew someone on the Perl 6 design team to explain that too ... :)