OK. Let's see if I can get my case analysis right this time. Assume that when curly braces are explicitly entered, automatic semicolon insertion is still done, but automatic close brace is not. Under what conditions will a control freak like me who wants to own their own semicolons see one inserted?
Semicolons are only inserted at line start, and never when a semicolon has just been seen. If the programmer is terminating statements with semicolons, then we need only consider continuation lines. If a continuation line is *less* indented than its start, no semicolon will be inserted and (because of no auto-brace), no brace will be inserted. I believe this case should generate a warning, or even an error. If a continuation line is *more* indented than its start, no semicolon will be inserted. This case is correct, and it is the policy of *every* sensible code review process. If a continuation line has *the same* indent as its start line, a semicolon will be inserted that the programmer does not want, hopefully triggering a syntax error. This indentation choice is sufficiently confusing to auditors and reviewers that it should be considered an error in any case - *every*sensible code review process rules out this type of thing. So it seems to me that auto-inserted semicolons are only troubling to the control freak when they are doing something that they truly should not be doing. shap
_______________________________________________ bitc-dev mailing list [email protected] http://www.coyotos.org/mailman/listinfo/bitc-dev
