Because for the "1 char" the editor can be configured to show it as how many character spaces it chooses. This makes tabs visually inconsistent. If I open a file in an editor and I suddenly see 2 spaces (that is 1 tab) but in a different editor (or in the terminal; or both (vi, emacs, etc.)) I look at the same file and it's 4 spaces, that violates POLA.
Whereas with spaces you know what indentation level you're at when looking at the code in any visual format, since it's always the same as 4 space widths characters worth of space..
Serious question, why don't we want the developer to have control over the indentation level? Why is it preferable that you get to control the indents on my screen? What if I prefer 2 and you prefer 4?
0
u/[deleted] Jul 25 '18
[deleted]