Hacker News new | ask | show | jobs
by koenigdavidmj 5951 days ago
It's quite common and accepted for compilers to make assumptions about the rest of the code, and for those to be wrong if your code is broken.

For example, the C# compiler has a large number of passes, and it will do no more passes after seeing an a previous pass. Thus, you might knock a file down to one error, fix that error, and then find that you have a couple dozen more errors.

1 comments

> It's quite common and accepted for compilers to make assumptions about the rest of the code, and for those to be wrong if your code is broken.

Indeed. Most annoyingly, many "modern" C compilers still attempt to muddle onward by replacing unknown types with "int".

I think the standard requires that.