In the 13th paragraph of the section "How to Use This Book", it reads:
As such, we鈥檒l provide many examples of code that
doesn鈥檛compile along with the error message the compiler will show you in each situation.
It should be:
(...) many examples of code that _don't_ compile (...)
Ah yes, this is technically correct! Nice catch, even our copyeditors didn't notice.
Technically it depends on whether "that doesn't compile" goes with "examples" or "code"......
Now I'm having second thoughts... In the end it's really down to the authors. Do they mean that examples of code don't compile, or that code [in the examples] doesn't compile? 馃
Technically it depends on whether "that doesn't compile" goes with "examples" or "code"......
Yes. But my reading is that "of code" is a dependent clause. It's because you can read the sentence without it:
As such, we鈥檒l provide many examples that doesn鈥檛 compile
and this is clearly wrong.
I guess you could also argue that the whole thing is one big dependent clause... this is where my grammar expertise ends 馃槅
I decided to remove "of code" to make this discussion moot :)
Most helpful comment
I decided to remove "of code" to make this discussion moot :)