Syntax errors are the best kind of errors

It is best not to make any programming errors at all.

However,  if you are going to make programming errors, syntax errors are the best kind because they are the easiest to find and fix.

Over the years, compiler developers have worked hard to make compilers smarter so that they can catch errors at compile time that might otherwise turn out to be runtime errors.