Spell checking errors can be hilarious

Steven Schveighoffer schveiguy at gmail.com
Mon Oct 12 18:20:42 UTC 2020


On 10/12/20 2:06 PM, claptrap wrote:
> On Monday, 12 October 2020 at 13:24:17 UTC, Steven Schveighoffer wrote:
>> Try this in a D file:
>>
>> foo[] foos;
>>
>> And you get an error like:
>>
>> Error: undefined identifier foo, did you mean variable foos?
>>
>> I know why this happens, is there a way to get it not to happen? Some 
>> of these can actually be really puzzling. I've seen stuff like "no 
>> identifier foo.bar, did you mean foo.bar?"
> 
> I never find the spell check useful anyway, its one of those seems like 
> a good idea but it is useless in practice in my experience. The 'errors' 
> are almost always typos which are obvious once your at the line in 
> question.
> 
> Is there a way to turn it off?
> 

I find it useful when I spell something one character off. Having the 
correct symbol right next to the wrong one allows me to see the 
difference easier. Besies, you can just ignore it if you want, it 
doesn't change much to not see the suggestion.

But sometimes the suggestion makes no sense (as in this case).

I'm just wondering if the system can detect (some of) these nonsense cases.

-Steve


More information about the Digitalmars-d mailing list