by recursive · 6y ago · 0 comments
By the way, what's the misunderstand with lining things up?
The real problem comes when people start aligning things on the middle of the line.
So instead of this:
def some_method(param1
param2):
statement1
you do this: def some_method(
param1,
param2):
statement1
Hanging indents work regardless of whether you use tabs or spaces for indentation.Fixed width:.good
Flexible:....not good
.............so not good
const ONE = 1;
const MILLION = 1_000_000;
Even without non-whitespace it's a problem:def foo(arg1,
........arg2,
........arg3)
For the second one, I'd write it this way.
def foo(
....arg1,
....arg2,
....arg3)
I prefer that even in a fixed width font.