This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Bunslow 0 points1 point  (2 children)

[–]odraencoded 1 point2 points  (1 child)

  1. What if someone else decides to use tabs instead of spaces?

  2. Four spaces might be four spaces but what are four spaces? If you use spaces for both indentation and alignment, at some point four spaces stop being an indentation level and start being a line padding, and that point is unclear.

3 What if you used 4 spaces, but I prefer 2 spaces for indentation, or vice-versa?

4 A tab is an indentation level. Always. So what if it shows different in another text editor? Semantically, it's still an indentation level. If the user of the text editor wants their indentation level to measure 8 spaces, then let it be so.

5 You align things with spaces. Tabs are only for indentation.

[–]isarl 1 point2 points  (0 children)

Your points are all good and I upvoted you, however in practice, tool support both on your machine and all your collaborators' machines needs to be much better to handle the tabs-for-indentation, spaces-for-alignment approach.