"be consistent" | |
PerlMonks |
Re: Plural variable naming (or not?)by cjf (Parson) |
on Mar 19, 2002 at 14:53 UTC ( [id://152735]=note: print w/replies, xml ) | Need Help?? |
I follow naming conventions roughly similar Juerd and simon.proctor. Scalars should be singular, it really throws me off when they're not, $fields just really doesn't look right. Arrays should always be plural. Hashes on the other hand, I'm fairly indifferent about, but I tend to lean towards singular $field{name}. I think this looks a bit better than $fields{name} but it does depend somewhat on what it's being used for.
In Section
Meditations
|
|