3 ms·
What's wrong with mixing tabs and spaces? The proper way to code is to use tabs to indent, and spaces after to align. So, no spaces before tabs, only after, a
by bkudria 17y ago
What's wrong with mixing tabs and spaces?
The proper way to code is to use tabs to indent, and spaces after to align. So, no spaces before tabs, only after, and tabs should only indent to the current indentation level of the code (obviously).
- kscaldef 17y agoThe problem is that you must adopt a standard tab width for this to approach. Otherwise when you mix this with team members who use only spaces, things with become inconsistent. Also, as I pointed out, with languages like Python & Haskell, it is required to fix the tab width. At this point, where you must dictate a fixed tab width that everyone must use, I fail to see any advantage to using tabs (other than a miniscule reduction in file size).