home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / software / 5007 < prev    next >
Encoding:
Internet Message Format  |  1992-12-16  |  1.5 KB

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