Re:Tabs or spaces – Parsing a 1B files among 14 programming ...
by dozzie on Thursday September 01, 2016 @02:38PM
(#12407777)
What you presented indeed has no alignment spaces, so all-tabs approach works.
The thing is, there are codebases that use "my" line breaking, and with no
editor that handles that case correctly, tabs are just no-go.
> If your method name grows or shrinks, the alignment in your example needs to be fixed whereas with simple indentation there's no such need.
I gladly accept this drawback, for the sake of situations when a linebreak is
necessary, but the argument list is just too short to be split it into
separate lines like in your example. (The necessity is a matter of taste,
obviously.)
I admit, these situations are rare, but they happen from time to time, so
I simply don't use tabs.
The thing is, there are codebases that use "my" line breaking, and with no editor that handles that case correctly, tabs are just no-go.
> If your method name grows or shrinks, the alignment in your example needs to be fixed whereas with simple indentation there's no such need.
I gladly accept this drawback, for the sake of situations when a linebreak is necessary, but the argument list is just too short to be split it into separate lines like in your example. (The necessity is a matter of taste, obviously.)
I admit, these situations are rare, but they happen from time to time, so I simply don't use tabs.