4 ms·
Not really a solved problem. Even if you set your editor to display 1 tab as 2 columns, another person may set their editor to display 1 tab as >2 columns. So e
by jml7c5 6y ago
Not really a solved problem. Even if you set your editor to display 1 tab as 2 columns, another person may set their editor to display 1 tab as >2 columns. So even using tabs, a project has to set rules for tab width.
- 0-_-0 6y agoWhy would that be a problem? That's the point, that you can set tab width any way you want.
- ric2b 6y agoThe argument is that the line length limit has to be related to some default indentation length, which in Linux's case is 8 spaces.
- PunksATawnyFill 6y agoThis is always the argument against tabs, but it makes no sense. So what? If you don’t like your tab width, CHANGE IT. That’s a huge win over spaces, where indentation is hard-coded.
- jml7c5 6y agoI somehow forgot to add the essential part of my comment. Sorry, here it is: If someone prefers a narrow tab width and breaks lines based on that, then someone who prefers a wide tab width will get overfull lines: 20 column limit, 2-column tabs: if (a==b) { | if (b==c) { | some_function();| 20 column limit, 4-column tabs: if (a==b) { | if (b==c) { | some_functio| <- overfull line Either way, the project has to set some sort of official tab width. Or at least, a maximum tab width.