
Code completion isn’t magic; it just feels that way
The Stack Overflow Podcast
00:00
Code Completion: Is Your Autocompleter Always Guessing?
Building a code completer is like building the graphics for ta game. Your only job is to keep the human in front of the monitor happy, which means it's perfectly ok to guess. If you feed a programme with a syntax error into your classic parsa, it will go and give you a syntax error. The really stylish way to do it is have a pasa with error recovery. It can spot that the text its being given does not conform to the grammar definition it's been given. And instead of giving up and throwing an exception, it will give you an a s t but it will usually will have like an aero node in it.
Transcript
Play full episode