Variable Name Conventions

don provan donp at na.excelan.com
Sat Jan 20 08:56:32 AEST 1990


>There is also the
>convention of starting structure member names with xx_, where xx is
>an abbreviated version of the structure name, but that's largely an
>artifact of now-obsolete namespace structure in early compilers.

Henry, you've said this several times recently.  It just isn't true.
There are many advantages to this convention.  The most obvious is
that, while it's easy to find all occurrences of "xx_len" in a large
body of code, it's difficult and meaningless to find all occurrences
of "len".

Personally, i think it would be more accurate to say the convention of
NOT having structure ID in field names is largely an artifact of
now-obsolete programming practices which emphasized brevity at the
expense of maintainability.

						don provan
						donp at excelan.com



More information about the Comp.lang.c mailing list