|
|
|
|
|
by gridspy
5355 days ago
|
|
It's possible that such automatic repair would create a bug. Much safer to have a human check and ensure that the ; goes in the right place. A better point is that the error messages from many compilers can be very obscure. This was particularly true 10-15 years ago. |
|
Clang does something like this. If it notices a simple enough syntax error that it can correct, it still generates the error message but it makes the correction internally and continues the compilation far enough to generate useful error messages about the rest of the code. But it doesn't output anything or change the code.