On Wed, 11 May 2011 13:50:42 +1000
Ben Finney
"Carl M. Johnson"
writes: Can we all at least agree that continuation lines should always be at least one space more indented than the parent line?
At least one standard (four-column) indentation level further than the opening line.
Still overly strict. Consider:
f(long_named_argument_one, calculated_value_two(with_arguments),
another_argument)
The two-space indent is perfectly reasonable here, as it aligns the
first element (a function argument) with the same function's argument
above it. In some cases, a similar one-space indent is also
reasonable.
I stand by my second proposal (reworded):
Continuation lines should be indented to reflect the structure of
the code. The indentation should either align with similar elements
or match the surrounding source.