3 ms·
I find it interesting that certain languages (F#, Ruby, Scala) are so polarized against tabs. Some make sense, like Haskell, Go, or Python (and, to an extent,
by pmiller2 11y ago
I find it interesting that certain languages (F#, Ruby, Scala) are so polarized against tabs. Some make sense, like Haskell, Go, or Python (and, to an extent, CSS), but the rest kind of baffle me.
- MichaelGG 11y agoExample: let x = let x = 1 x + 1 If you use tabs the indentation is broken depending tab size. Some languages prefer needless symbols to do this; I prefer the cleanliness of just whitespace.
- rascul 11y agoThe indentation is fine, the alignment is broken. Tab to the indent level and align after that with spaces.
- MichaelGG 11y agoThe actual indent level is wherever the second let begins. It's equivalent to: let x = let x = 1 x + 1 Seems inconsistent to have to use a mix of tabs and spaces in different scenarios of visual preference.
- rubyfan 11y agoI interpreted this to indicate a tribal connection. Where Ruby developers have explored and migrated to other languages like Scala and JavaScript their indent preferences have remained. Obviously this is conjecture but one could test the theory to see which users commit to which types of languages to spot some trends.