Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!megatest!djones From: djones@megatest.UUCP (Dave Jones) Newsgroups: comp.lang.c Subject: Re: case sensitivity Message-ID: <4416@goofy.megatest.UUCP> Date: 24 Apr 89 23:00:06 GMT References: <850@twwells.uucp> Organization: Megatest Corporation, San Jose, Ca Lines: 26 > In article <17061@mimsy.UUCP> chris@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