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: f43e6,ea99940253996e3e X-Google-Attributes: gidf43e6,public X-Google-Thread: 109fba,ea99940253996e3e X-Google-Attributes: gid109fba,public X-Google-Thread: 108717,ea99940253996e3e X-Google-Attributes: gid108717,public X-Google-Thread: 103376,ea99940253996e3e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-11 20:30:37 PST Path: archiver1.google.com!news2.google.com!fu-berlin.de!newsmi-eu.news.garr.it!NewsITBone-GARR!newsserver.cilea.it!news.crs4.it!not-for-mail From: Jacob Sparre Andersen Newsgroups: comp.software-eng,comp.programming,comp.lang.c++,comp.lang.ada Subject: Re: Spell-checking source code Date: Tue, 07 Oct 2003 20:56:35 +0200 Organization: CRS4, Center for Adv. Studies, Research and Development in Sardinia Message-ID: <3F830C63.1070005@crs4.it> 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> NNTP-Posting-Host: sparre.crs4.it Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: pietro.crs4.it 1065593869 6934 156.148.70.170 (8 Oct 2003 06:17:49 GMT) X-Complaints-To: news@nntpserver.crs4.it. NNTP-Posting-Date: 8 Oct 2003 06:17:49 GMT User-Agent: Any Browser, HTML 4.01, XHTML 1.0 X-Accept-Language: fo, da, no, sv, is, fr, de, it, In-Reply-To: Xref: archiver1.google.com comp.software-eng:20741 comp.programming:821 comp.lang.c++:2053 comp.lang.ada:703 Date: 2003-10-08T06:17:49+00:00 List-Id: 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. > 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. > c/ Comments are spell-checked like in any other word processor, except > that identifier names should also be considered Since I don't think misspellings should be allowed in identifier names, this point seems irrelevant to me. Jacob -- LDraw.org Parts Tracker FAQ: http://www.ldraw.org/library/tracker/ref/faq/