Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!apple!agate!linus!linus!sdimax2!jrv From: jrv@sdimax2.mitre.org (VanZandt) Newsgroups: comp.lang.c Subject: Re: a style question Message-ID: <122414@linus.mitre.org> Date: 5 Oct 90 19:40:33 GMT References: <7341@darkstar.ucsc.edu> <8660@ncar.ucar.edu> <1990Sep30.220839.20183@nntp-server.caltech.edu> <1990Oct1.174625.22061@zoo.toronto.edu> <1990Oct2.163853.17004@nntp-server.caltech.edu> Sender: usenet@linus.mitre.org Organization: The MITRE Corp., Bedford, MA Lines: 17 In article <1990Oct2.163853.17004@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... [if you do a text search for 'i'...] >you find that a lower case 'i' appears an average of about >four times per comment line. 'ix' appears in the comments only when >the comments are about variable 'ix'. Or, similarly, you 'grep' 'i'. What you need is a "whole word mode" for the search command in your text editor. I came to the same conclusion, bought the source code for my editor, and implemented it myself. Very helpful. BTW, if you have regular expression search, you can fake it by searching for i. - Jim Van Zandt