"be consistent" | |
PerlMonks |
Re: Silly code reviews and shiftby Anonymous Monk |
on Feb 05, 2002 at 03:32 UTC ( [id://143344]=note: print w/replies, xml ) | Need Help?? |
I too very often use shift. I always shift of the first argument in methods. I'm sure you understand why, but I'll say why anyway. It's because I want them to be more like regular subroutine calls, where I can do nice checks on scalar(@_). And, having
certainly makes a good visual aid for me. I often even prefer to do over my ($self, $this, $that) = @_; -Anomo
In Section
Meditations
|
|