Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: (tye)Re: the "@" indicates plural hence "s" is redundant

by impossiblerobot (Deacon)
on Oct 30, 2002 at 17:54 UTC ( [id://209178]=note: print w/replies, xml ) Need Help??


in reply to (tye)Re: the "@" indicates plural hence "s" is redundant
in thread the "@" indicates plural hence "s" is redundant

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
  • Comment on Re: (tye)Re: the "@" indicates plural hence "s" is redundant

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-09-07 20:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.