<div dir="ltr"> I knew this was going to end badly as soon as I saw the initial email.<br><div><div><br></div>2 spaces, no tabs, } else {, 80 characters wide. Discuss.<br><br></div><div>The only helpful comment I have with the discussion is that it's a real pain to maintain patch-sets (or a code branch) against code with inconsistent indentation or formatting, since you can't fix any of it without ruining your ability to merge changes. This doesn't seem to be a major problem for Swift.<br>
</div><div><br></div><div>- Tim<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 14, 2013 at 10:28 PM, Ben Clifford <span dir="ltr"><<a href="mailto:benc@hawaga.org.uk" target="_blank">benc@hawaga.org.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
oh i can argue this all night.<br>
<div class="im"><br>
> > If someone wrote some code with tab = 4, and committed it, and someone<br>
> > else wrote code with tab = 8, maybe even in the same file, there is no<br>
> > consistent value to use.<br>
><br>
> A tab is a tab. You can't write a file with both 8 space tabs and 4<br>
> space tabs. You can however write a file with 8 space indentations vs. 4<br>
> space indentations if you don't use tabs exclusively.<br>
<br>
</div>Person A commits some code with a single tab indent.<br>
Person B has their display set to tab = 8 and adds new lines with 8 spaces<br>
rather than using the existing indentation byte sequence.<br>
Person C has their display set to tab = 4 and adds new lines elsewhere in<br>
the file with 4 spaces, rather than using the existing indentation byte<br>
sequence.<br>
<br>
Now you have a file with both 8 space tabs and 4 space tabs.<br>
<br>
it seems hardest of all to stop people using their own favourite<br>
indentation sequence rather than the pattern already used. (make tabs and<br>
spaces have different colours and a bunch of the communally edited code I<br>
work with looks pretty puke)<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
Swift-devel mailing list<br>
<a href="mailto:Swift-devel@ci.uchicago.edu">Swift-devel@ci.uchicago.edu</a><br>
<a href="https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel" target="_blank">https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel</a><br>
</div></div></blockquote></div><br></div>