Spell checking errors can be hilarious

Walter Bright newshound2 at digitalmars.com
Tue Oct 13 08:51:33 UTC 2020


On 10/13/2020 1:31 AM, Jacob Carlborg wrote:
> Then the compiler will be wrong in some of those cases. 

At some point it's necessary to just accept how it works, because the compiler 
cannot read your mind and cannot know with certainty your intent. If the 
compiler could always discern what you meant, it wouldn't need to issue an error 
message at all.

The spell checker is simple and is surprisingly effective, guessing right more 
than 50% of the time for me. The import hinter does even better.

If there's fault here, it is not in the checker or the hinter, it's in the 
choice of an extremely common word "to" in the library.


More information about the Digitalmars-d mailing list