2 ms·
I disagree with this, because there are a lot of fairly benign language extensions that break compatibility in pathological cases. Here's a C example. C90 sup
by throw16180339 2y ago
I disagree with this, because there are a lot of fairly benign language extensions that break compatibility in pathological cases.
Here's a C example.
C90 supported block comments with /* comment */.
C99 added BCPL style comments with // the rest of this line is a comment
They were already a common language extension and supported by C++.
Here's an example of C90 code that fails to compile under C99 because of // comments.
int x = 12;
int y = x //* I'm placing a comment here just to be difficult.*/ 3;
Should the committee have rejected this change to prevent breaking programs with similar code?