Newsgroups: comp.lang.c Path: utzoo!henry From: henry@zoo.toronto.edu (Henry Spencer) Subject: Re: a style question Message-ID: <1990Oct1.174625.22061@zoo.toronto.edu> Organization: U of Toronto Zoology References: <7341@darkstar.ucsc.edu> <8660@ncar.ucar.edu> <1990Sep30.220839.20183@nntp-server.caltech.edu> Date: Mon, 1 Oct 90 17:46:25 GMT In article <1990Sep30.220839.20183@nntp-server.caltech.edu> manning@nntp-server.caltech.edu (Evan Marshall Manning) writes: >Don't ever use single-character variable names. I use 'ix' for >loop index variables for which I can come up with no better name... In what way is "ix" superior to "i"? Both are meaningless names in this context. If the name is not going to be meaningful -- and in the context of a short loop, it's not clear that making it meaningful is either possible or particularly important -- then at least keep it short. There is an old prejudice against using "I" or "O" for a variable name, arising from confusion with "1" and "0", but the lowercase letters don't have that problem. -- Imagine life with OS/360 the standard | Henry Spencer at U of Toronto Zoology operating system. Now think about X. | henry@zoo.toronto.edu utzoo!henry