in reply to Plural variable naming (or not?)
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Plural variable naming (or not?)
by tachyon (Chancellor) on Mar 19, 2002 at 16:50 UTC | |
by cjf (Parson) on Mar 19, 2002 at 20:36 UTC | |
|
Re: Re: Plural variable naming (or not?)
by thelenm (Vicar) on Mar 19, 2002 at 23:53 UTC |