Quote:Original post by Grafalgar
However, that not being the case, I find it very difficult to adopt (and read) a convention that asks me to remember that indentation starts scope, but an ending brace with one less indentation ends it. That, to me, is not a very logical 'pairing' of functionality, ie they are not complementary.
Ah, well you see, I don't consider the braces to be part of the scope, in much the same way that I don't consider quotation marks to be part of a quotation. So to me, the convention simply asks you to remember that indentation denotes the contents of a scope - and that's the same whether you give the opening brace a new line or not.
Quote:
Compare to Python where the rule says indentation increase enters a new scope, indentation decrease exits scope. C++'s syntax, of course, enters a new scope with {, and exits it with }, and so I expect to see them used in the same way, however you define that to be.
"used in the same way"? I can't extract any sense out of this argument; you seem to be saying that in either case, you should do what the language requires you to do. Well, duh.