in reply to the "@" indicates plural hence "s" is redundant
I write the names of arrays with a trailing "s", because seeing something like @function really throws me off. It looks like there is some sort of mismatch between the name of the variable and its plurality. To me, the "s" isn't redundant... it confirms at a glance that there are (possibly) multiple elements in the variable.
Of course, sometimes even a scalar variable can hold a reference to multiple elements (as an array reference, for example). In this case, there is no "@" to indicate plurality, so the "s" is necessary (in my mind, anyway). So, in my coding style,
That's not to say that either style is necessarily better. Mine just fits my brain better. I'm curious to see what other people think, as well.
-- Mike
--
just,my${.02}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: the "@" indicates plural hence "s" is redundant
by bart (Canon) on Oct 30, 2002 at 23:47 UTC | |
by Notromda (Pilgrim) on Oct 31, 2002 at 04:37 UTC |