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: f43e6,ea99940253996e3e X-Google-Attributes: gidf43e6,public X-Google-Thread: 109fba,ea99940253996e3e X-Google-Attributes: gid109fba,public X-Google-Thread: 103376,ea99940253996e3e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-12 01:07:13 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail From: "Jakob Bieling" Newsgroups: comp.software-eng,comp.programming,comp.lang.c++,comp.lang.ada Subject: Re: Spell-checking source code Date: Sun, 12 Oct 2003 10:07:18 +0200 Organization: T-Online Message-ID: References: <2cfd1a4e.0309252032.3e3c0a1a@posting.google.com> <863cefjy6l.fsf@strudel.futureapps.de> <86ad8i7d1d.fsf_-_@huldreheim.huldreskog.no> <86zngh5oct.fsf@huldreheim.huldreskog.no> <86r81s6elg.fsf@huldreheim.huldreskog.no> <3F830C63.1070005@crs4.it> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.t-online.com 1065945995 01 17645 +S4KVtCES4Aqsn 031012 08:06:35 X-Complaints-To: usenet-abuse@t-online.de X-ID: GDcVWZZLZeIZpVuiJCkejIARtKx72kvE4JKGSxucIcl2PrOJBQk2kV 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 Xref: archiver1.google.com comp.software-eng:20742 comp.programming:830 comp.lang.c++:2069 comp.lang.ada:715 Date: 2003-10-12T10:07:18+02:00 List-Id: "Jacob Sparre Andersen" wrote in message news:3F830C63.1070005@crs4.it... > Jakob Bieling wrote: > > "Leif Roar Moldskred" wrote in message > > news:86r81s6elg.fsf@huldreheim.huldreskog.no... > > > >>"Jakob Bieling" writes: > > > Ah, I did not consider this difference even. *g* My point was, checking > > my own identifier names for spelling errors based on natural language rules > > is a bad idea. > > Why. They are hopefully spelled correctly. Otherwise you are adding an > unneeded complication to reading and understanding your code. > > > Instead, a special code-spell-checker would be great: > > > > a/ 'Created' identifiers are automatically added to the list of known > > words (for the current compilation run only) > > I wouldn't like that. Incorrectly spelled identifiers make code > maintenance more difficult. I do not know how you choose your identifier names, but I usually give them abbreviated prefixes, which would make every spell-checker flag a misspelling. See Kevin's example (news:3f7df3af_2@nntp2.nac.net) > > b/ When an identifier is used, but not found, the spell-checker tries to > > find out what I meant (like any spell-checker) > > Would certainly be nice. But doing a proper job here basically means > trying to compile the code. If you decide to ignore visibility rules, > things will of course become much simpler. Right. You got me thinking here, though. Since the code is sort-of-spell-checked by the compiler already, point a and b are pretty much superflous (unless you want the luxury of the compiler trying to guess the correctly spelled identifier name). No need for a special spell-checker anymore, except that it should only spell-check comments ;) regards -- jb (replace y with x if you want to reply by e-mail)