some_var = foo()
another_var = bar()
Run Code Online (Sandbox Code Playgroud)
要么
some_var = foo()
another_var = bar()
Run Code Online (Sandbox Code Playgroud)
包括在添加或删除行时更改空白以使它们排成一行.这真的很好吗?是不是值得混淆差异?
我不认为它是一个好的风格,因为它太难以进行更改(你必须做所有的工作再次排列它们),对我而言,它是完全可读的,没有额外的空白.
特别令人讨厌的是,当你改变一条比所有其他线条更长的线条的左边部分时,你需要重新排列所有其他线条.
例:
some_var = foo()
another_var = bar()
Run Code Online (Sandbox Code Playgroud)
现在我要添加一个名为var的var another_another_var:
some_var = foo()
another_var = bar()
another_another_var = baz()
Run Code Online (Sandbox Code Playgroud)
现在我必须再次排队:
some_var = foo()
another_var = bar()
another_another_var = baz()
Run Code Online (Sandbox Code Playgroud)
很烦人.