@neauoire the other reason which should immediately shut down the discussion is that tabs are more accessible. If you have a vision impairment then tabs allow you to customize the display of the code to read more comfortably.
@sir @neauoire I also like tabs, but not for padding, since it requires a fixed tab-size (which is contrary with the idea I can change the tab-size).
Complete motivation: https://gitlab.com/BartG95/dot/-/blob/c79d086a6b43dde214efb8352ac20390bce65a0b/editorconfig/.editorconfig#L99
You can configure most editors I know of to change indentation-as-spaces to display with your preferred width, even though they aren't tabs.
You could make a good argument that this is putting unnecessary complexity into text editors to overcome something that shouldn't be a problem to start with.
Treating code-for-humans as raw lines of unformatted text is the main problem. :/
@cancel @sir The realization I was having when reading that comment was that there was something designed explicitely to do what I was doing, and I was not using it. I don't like when editors do too much for me either, well in any case, moving forward, I'll make sure that my editor saves the indentations as tab characters.
I agree tabs are slightly better than spaces for C code, and most other languages that adopt the leading indentation style like that.
In practice I don't care that much, and I just use whatever the project uses, and if someone else comes by later and wants to change it or something, I point out there's a way to make what they want to do work under whatever circumstance. Usually by configuring editor or using auto-format tool.
The thing about aligning with tabs is that it only works when aligning text shorter than a tab width, whereas aligning text is most desirable when there's big variability in the lengths of the cells of the would-be columns.
I'm curious though, are you talking about something like Elastic Tabstops? (http://nickgravgaard.com/elastic-tabstops/)
Merveilles is a community project aimed at the establishment of new ways of speaking, seeing and organizing information — A culture that seeks augmentation through the arts of engineering and design. A warm welcome to any like-minded people who feel these ideals resonate with them.