in reply to Re: How to best pass on the context / wantarray?
in thread How to best pass on the context / wantarray?
I'm not yet set on ->move_left and ->move_right - these two will maybe just become ->left and ->right, so the expectation of movement vs. result gets more ambigous again.
The idea of using move and moved isn't bad, but is a bit too wordy for my taste. I could create the move version of a moved method automatically, so I'll keep that in mind as the alternative route to take when my dual-life idea doesn't work out. One thing that speaks for your approach is, that your approach is easily translated to JavaScript while I'm not aware of anything like wantarray in JavaScript.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: How to best pass on the context / wantarray?
by GrandFather (Saint) on Mar 26, 2006 at 19:06 UTC |
In Section
Seekers of Perl Wisdom