|
|
|
|
|
by couchand
4358 days ago
|
|
I see the confusion. For aligning function call arguments your strategy works fine. Here are a couple use cases that don't work out so well with tabs (taken from the Jalopy manual [0] to make finding examples easy): function declaration (most people would accidentally use too many tabs here): public void severalParameters(String one, int two, String three,
StringObject four, AnotherObject five) {
...
}
assignments: String text = "text";
int a = -1;
History.Entry entry = new History.Entry(text);
Ultimately the problem with mixing spaces and tabs in one document is that programmers are human. Someone will inevitably make a change to the lines you've carefully indented and mess up the whitespace, and someone else will have to go back to fix it in a dummy commit. Having a simple rule that's easy to follow eliminates that source of wasted effort.[0]: http://jalopy.sourceforge.net/existing/manual.html |
|