From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 108717,ea99940253996e3e X-Google-Attributes: gid108717,public X-Google-Thread: 103376,ea99940253996e3e X-Google-Attributes: gid103376,public X-Google-Thread: f43e6,ea99940253996e3e X-Google-Attributes: gidf43e6,public X-Google-Thread: 109fba,ea99940253996e3e X-Google-Attributes: gid109fba,public X-Google-ArrivalTime: 2003-10-06 06:01:07 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newshunter!cosy.sbg.ac.at!newsfeed.utanet.at!newsfeed01.highway.telekom.at!newsreader01.highway.telekom.at!not-for-mail From: "Robert Stankowic" Newsgroups: comp.software-eng,comp.programming,comp.lang.c++,comp.lang.ada References: <2cfd1a4e.0309252032.3e3c0a1a@posting.google.com> <863cefjy6l.fsf@strudel.futureapps.de> <86ad8i7d1d.fsf_-_@huldreheim.huldreskog.no> <8665j66u8z.fsf@huldreheim.huldreskog.no> <3f7df3af_2@nntp2.nac.net> Subject: Re: Spell-checking source code (Was: ISO Studies of underscores...) Date: Mon, 6 Oct 2003 14:58:46 +0200 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: <3f8166af$0$21268$91cee783@newsreader01.highway.telekom.at> NNTP-Posting-Host: 62.47.93.91 X-Trace: 1065445040 newsreader01.highway.telekom.at 21268 62.47.93.91 Xref: archiver1.google.com comp.software-eng:76 comp.programming:459 comp.lang.c++:1068 comp.lang.ada:303 Date: 2003-10-06T14:58:46+02:00 List-Id: "Kevin Morenski" schrieb im Newsbeitrag news:3f7df3af_2@nntp2.nac.net... > > // Number of misspelled words fuond so far > > int noErorsInTetx = 0; > > > > I want to spell-check this such that I get notified both on "fuond" > > for "found", "Erors" for "Errors" and "Tetx" for "Text". They are all, > > after all, words in natural language, and it should be possible to > > spell-check them automatically. > > Let's say you had a variable named "tHTa," for example. With respect to > your concept, this would be a misspelling of the word "that." Now, a lot of > programmers--myself included--use letters to represent certain things in > variable names. tHTa could mean "type HTa" or anything else a programmer > could think of. How could a program possibly differentiate between > conventions in the naming of variables? > > It's much simpler to check the spelling of comments...programmers have > developed so many conventions for making their lives easier; a spell checker > on variable names just adds one more problem to overcome. An editor which is capable of finding the definition of variables and highlighting a name already defined/declared might solve that problem. VB has that feature to a certain degree - if you use mixed case for names of variables, functions etc. and you type a name already declared in lowercase the editor will automatically convert it to the form in which it is declared. If you know, the name is declared and case does not flip you know you made a typo. IIRC Keil development system for embedded C programming has a similar feature. just my $0.02 Robert