|
|
|
|
|
by troupo
651 days ago
|
|
> First of all, a compiler for a 100% correct program definitely has all the necessary information for robust intellisense. It doesn't. Intellisense is supposed to work on 100% incorrect and incomplete programs. To the point that it should work in syntactically invalid code. |
|
Correct. I literally discussed this scenario in my comment!
If the program compiles successfully then the compiler has all the information it needs for intellisense. If the program does NOT fully compile then the compiler may or may not be able to emit sufficient intellisense information. I assert that compilers should be able to support this common scenario. It is not particularly different from needing to support good, clear error messages in the face of syntactically invalid code.