Much (most?) of the Arrow code I've looked at conf...
# arrow
j
Much (most?) of the Arrow code I've looked at conforms to 2 space indentation. I've always used 4. But it seems like the more functional-style code I write, the more I run out of horizontal space. Is that typical? What's the reasoning for the 2 space style chosen for Arrow? Is it a carryover from Scala conventions?
r
functional style frequently involves nesting specially if you use methods like flatMap etc… and results in over nested code. Having said that there is no strong reason but that of the preference of the original authors
👍🏾 1
Ideally it does not matter what you commit it gets reformatted before merging but we don’t have that kind of flow in Arrow at the moment
b
Odd, I find the more FP I write the fewer indents I have due to comprehension blocks and simpler functions
👍🏾 1
p
It’s also Google’s convention to use 2 spaces
👍🏾 1
j
Cool. Thanks all!