by eropple · 14y ago · 0 comments
I don't use tabs because of an equally obvious reason that spaces are better: because I end up padding with spaces because the tabs are too big. For example, I like having horizontally consistent parameter argument lists, like below:
class Thing {
def beep(bar: String, baz: Int, quux: Seq[String],
quuux: Map[String, String], quuuux: Int) = false
}
If I tried to use tabs there, I'd be off by a space and have to add another space. Someone with a different hard-tab width would then get mad because there's an "extraneous" space in their view. And then we all have a nice big slapfight and sound like your post in the process.(Plus, my editor treats four spaces in a row as a soft tab anyway, so I don't even notice it except when I want to. Life is peachy.)
You can still achieve what you want, and even faster, by using tabs to get your subsequent parameter lines most of the way there and then padding with a couple of spaces.