home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!sdd.hp.com!caen!uvaarpa!concert!borg!news_server!martinc
- From: martinc@hatteras.cs.unc.edu (Charles R. Martin)
- Newsgroups: comp.software-eng
- Subject: Re: average identifier length (was Comments: Code...)
- Message-ID: <MARTINC.92Dec16111309@hatteras.cs.unc.edu>
- Date: 16 Dec 92 16:13:09 GMT
- References: <12ea/11dbc@jspc.wimsey.bc.ca> <craigh.723767103@cserver>
- <1992Dec15.131302.22615@b30.ingr.com> <1992Dec16.080001@eklektix.com>
- Sender: news@cs.unc.edu
- Organization: UNC Department of Computer Science
- Lines: 18
- In-reply-to: rcd@raven.eklektix.com's message of 16 Dec 92 08:00:01 GMT
-
- In article <1992Dec16.080001@eklektix.com> rcd@raven.eklektix.com (Dick Dunn) writes:
-
- >I'm glad someone else uses the 'ii' technique. Means that there's some
- >code I may have to maintain someday that doesn't use 'i' <gag>.
-
- The use of a single 'i' as an index variable spreads across more
- languages than you've seen, and is backed up by centuries of
- mathematical usage.
-
- Of course (he said innocently) you could always include a comment that
- says "By convention, indices are doubled (eg, ii, jj, kk) to distinguish
- them from other variables."
- --
- Charles R. Martin/(Charlie)/martinc@cs.unc.edu
- Dept. of Computer Science/CB #3175 UNC-CH/Chapel Hill, NC 27599-3175
- 3611 University Dr #13M/Durham, NC 27707/(919) 419 1754
- "Oh God, please help me be civil in tongue, pure in thought, and able
- to resist the temptation to laugh uncontrollably. Amen." -- Rob T
-