There are circumstances when it makes sense to place elements on new lines: function calls with a lot of arguments, manual composition of data using
Question: am I the only person who uses leading commas on new lines? In other words, am I the only person who does this ...
c('element a' , 'element b' , 'element c')
instead of this ...
c('element a', 'element b', 'element c')
I've been using leading commas for years and didn't think anything of it until someone noticed it and commented on it. It suddenly struck me that I never see this in code examples anywhere. I like my method because it's a very clear signal that a line is meant to continue a preceding line. The position of the comma is variable on the right, but fixed on the left.
Does this make me a leftist?