4 ms·
These should all be compiler errors because the indentation and the delimiters don't match. if (expression) statement; statement; state
by artsrc 15y ago
These should all be compiler errors because the indentation and the delimiters don't match.
if (expression)
statement;
statement;
statement;
or:
if (expression)
statement;
if (expression)
statement;
else
statement;
or
if (expression); {
statement;
statement;
}
So curly brace languages should have a defined formatting standard and anything else should be a syntax error.