case sensitivity

Dave Jones djones at megatest.UUCP
Tue Apr 25 09:00:06 AEST 1989


> In article <17061 at mimsy.UUCP> chris at mimsy.UUCP (Chris Torek) writes:
> 
> I use the case of identifiers to tell me some important bits of
> information about the identifier that are not properly conveyed by the
> name.  Here's my table:
> 
> identifier      a local variable, a function, or structure or union member
> Identifier      a global variable
> IDENTIFIER      a #define constant, a typedef name, or a tag
> identifier(...) a function-like macro
> IDENTIFIER(...) a macro that evaluates its arguments more than once,
> 		references locals, or does other wierd things
> 

I too use capitalization conventions in C.  But I also try to remember
to distinguish things by spelling also, particularly if the two identifiers
might be valid in the same context.

If the compiler of some other language did not distinguish case, I would
still use capitalization conventions, as an aid to the reader.  The
discussion is about whether the "extra information" in capitolization
is best treated as significant or redundant.



                         Dave



More information about the Comp.lang.c mailing list