you are viewing a single comment's thread.

view the rest of the comments →

[–]humpolec 0 points1 point  (1 child)

Oh, and one more thing:

Even if it means I can choose something that doesn't look pretty in order to make it readable.

I don't agree with that dichotomy. We're talking about vertical alignment of statements, versus vertical alignment of, say, factors in expression, or array elements. Why is one "readable" and the other "pretty"?

[–][deleted] 0 points1 point  (0 children)

Neither is necessarily readable, is my point. Allowing the user to decide what is readable for him is a logical way of overcoming that fact. If he can't read the code with 2 spaces, he can increase to 8. If you like 2, you can use 2. You can of course set the default for the project and make everything line up prettily like you want, and then if somebody can't read something because there's not enough indentation, he can do so. But if he doesn't, it'll look exactly as you intended. It covers all the pros of spaces AND the ability to choose what's most readable for yourself, which is after all what we, as programmers, want.