top | item 4367887

(no title)

Rust | 13 years ago

In your example, if both developers are using TABs instead of spaces, why would it matter that one sees it as 5 spaces and the other as 8? It's still just a single TAB character either way.

Plus, each developer has the freedom to choose how many spaces a TAB is - I like 8 when I'm using my big monitor, but I prefer 4 on my laptop. With TABs, I can see it both ways depending on the machine.

On the off chance that I'm ever actually editing in a smaller window, I can even set it to 2 characters instead, but when I open that file again on another machine, I can see it as 4 or 8 characters.

discuss

order

cutie|13 years ago

Yes, there's an error there, conflating two ideas. I think tabs-only can still cause a problem, say when lining up comments on the end of a line because there might be a different amount needed per line depending on its length. Still, you can't be sure what other people will have, so for interop spaces it is.

It might not be the case for everyone, but my laptop screen is 1920x1080 and has more room for text than I can use. In a three way merge your strategy could help me perhaps.