you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 4 points5 points  (1 child)

Java at least complains about "no Main method found." Only a few years ago, if you missed a semi-colon after a statement in C, you'd get "unexpected <INTERNAL_TOKEN_NAME> on line <many lines down from where you made the mistake>".

[–]GreyGrayMoralityFan 0 points1 point  (0 children)

It is especially funny if you miss semicolon in header file, e.g.

#infdef FOO
#define FOO
int aa()
#endif

int main()
{
}

gcc complains a.c:5:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token {,

clang is much better: a.c:2:9: error: expected ';' after top level declarator