Path: csiph.com!xmission!news.alt.net!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news.iecc.com!.POSTED.news.iecc.com!nerds-end From: gah4@u.washington.edu Newsgroups: comp.compilers Subject: Re: Spell checking identifiers Date: Wed, 24 Jun 2020 18:28:02 -0700 (PDT) Organization: Compilers Central Lines: 20 Sender: news@iecc.com Approved: comp.compilers@iecc.com Message-ID: <20-06-017@comp.compilers> References: <20-06-010@comp.compilers> <20-06-013@comp.compilers> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="41925"; mail-complaints-to="abuse@iecc.com" Keywords: lex, errors Posted-Date: 25 Jun 2020 11:54:08 EDT X-submission-address: compilers@iecc.com X-moderator-address: compilers-request@iecc.com X-FAQ-and-archives: http://compilers.iecc.com In-Reply-To: <20-06-013@comp.compilers> Xref: csiph.com comp.compilers:2538 On Wednesday, June 24, 2020 at 11:45:44 AM UTC-7, Derek M. Jones wrote: (snip) > More than you probably wanted to know: > http://www.coding-guidelines.com/cbook/sent792.pdf Interesting. It seems that the compiler could also suggest when different names are confusingly similar, other than spelling, or otherwise possibly confusing to readers. Maybe by how they sound when pronounced. You might not want J1 and J_one in the same program. Reminds me that the IBM OS/360 Fortran H compiler, instead of using a hash table, uses six balanced trees. IBM suggests in one manual that for faster compilation, one distribute names among the six lengths. Back in the time when compilation time was more important than readability.