3 ms·
Sure, but you could presumably have some logic like "Copilot wants to type the string `MyClass.non_existent_method()`. Does the type checker accept this line? I
by rsynnott 2y ago
Sure, but you could presumably have some logic like "Copilot wants to type the string `MyClass.non_existent_method()`. Does the type checker accept this line? If not, tell Copilot to try again."
(I suspect possibly the reason that this does _not_ seem to be commonly done is that reliably producing _something_ (even if it's nonsense) is seen as more appealing to users than potentially not producing anything. And of course passing type checking is no guarantee of correctness.)
- AnimalMuppet 2y ago> And of course passing type checking is no guarantee of correctness. No, it's not. It's a guarantee that it should at least compile, though. That is, it means certain kinds of incorrectness are ruled out.