Perl Monk, Perl Meditation | |
PerlMonks |
Re: (tye)Re: the "@" indicates plural hence "s" is redundantby impossiblerobot (Deacon) |
on Oct 30, 2002 at 17:54 UTC ( [id://209178]=note: print w/replies, xml ) | Need Help?? |
So using @users can lead to more code that is less like English if you use elements of the array more than the array itself. I have been guilty of taking this concept of "how you will use it" to the extreme of naming collective variables with an 's' if I primarily expect to act on the list as a whole (or iterating over it), but naming without an 's' when I expect to reference individual elements a lot. Fortunately, I'm usually coding alone. :-) Impossible Robot
In Section
Meditations
|
|