[TriLUG] names of parameters passed down a chain of functions

Joseph Mack NA3T jmack at wm7d.net
Fri Jul 3 17:00:58 EDT 2009


On Fri, 3 Jul 2009, Steve Litt wrote:

> If you are programming in such a language (C, Perl, Python 
> and Ruby are examples), then having the same name is 
> probably best,

OK

> IF AND ONLY IF the same name does not mislead the 
> application programmer.
.
.
> Instead, even though in the application the people array might be
> called "people", within the generic sort I'd call it "array":
>
> void mysort(void *array, (void *compare)(void *, void*))

yes. I program on and off separated by several years and 
forget this in the mean time.

Very clear

Thanks Joe

-- 
Joseph Mack NA3T EME(B,D), FM05lw North Carolina
jmack (at) wm7d (dot) net - azimuthal equidistant map
generator at http://www.wm7d.net/azproj.shtml
Homepage http://www.austintek.com/ It's GNU/Linux!



More information about the TriLUG mailing list