<div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">With tab stops set to 8, a single tab or eight spaces are just alternate<br>
representations of the same thing, surely?</blockquote><div><br></div><div>Yes.</div><div><br></div><div>But what I am asking in this thread is to use either tabs or white spaces (not both). <br></div><div>If only one is used, the width of tab in IDE does not matter. Hence, I think this is a code style question request.<br></div><div><br></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><p style="font-family:sans-serif"><font size="1" face="arial, helvetica, sans-serif"><b>Shota Hino<br></b><font color="#999999">Connectivity Software<br></font></font></p></div><div dir="ltr"><font size="1" face="arial, helvetica, sans-serif"><span style="color:rgb(153,153,153)"></span><b>m</b><span style="color:rgb(153,153,153)"> 650-476-9668</span><b><br></b></font></div><div dir="ltr"><font size="1" face="arial, helvetica, sans-serif"><b>e</b><span> <font color="#999999">shota</font></span><font color="#999999">@<a href="http://eero.com" target="_blank">eero.com</a></font></font></div><div dir="ltr"><font size="1" face="arial, helvetica, sans-serif"><font color="#999999"><br></font></font></div><div><font size="1" face="arial, helvetica, sans-serif"><font color="#999999"><span style="color:rgb(0,0,0)"><b>eero LLC </b></span>660 3rd St, 4th Floor</font></font></div><div><font size="1" face="arial, helvetica, sans-serif"><font color="#999999">San Francisco, CA 94107</font></font></div><div dir="ltr"><font size="1"><table style="display:inline"><tbody style="display:inline"><tr style="display:inline"><td style="font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;margin:0px;width:288px;vertical-align:top;display:inline"><table style="display:inline"><tbody style="display:inline"><tr style="display:inline"><td style="font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;margin:0px;width:288px;vertical-align:top;display:inline"><br></td></tr></tbody></table></td></tr></tbody></table></font></div></div></div></div></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 11, 2019 at 2:49 PM Simon Kelley <<a href="mailto:simon@thekelleys.org.uk">simon@thekelleys.org.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 11/09/2019 22:12, Shota Hino wrote:<br>
> How do you feel about the mix usage of tab and leading white spaces?<br>
> The code is mangled because some liens use a tab and some use white spaces.<br>
> I do not think the choice of tab vs white spaces is code representation.<br>
<br>
With tab stops set to 8, a single tab or eight spaces are just alternate<br>
representations of the same thing, surely?<br>
<br>
<br>
Simon<br>
<br>
> <br>
> <br>
> <br>
> On Wed, Sep 11, 2019 at 2:05 PM Simon Kelley <<a href="mailto:simon@thekelleys.org.uk" target="_blank">simon@thekelleys.org.uk</a><br>
> <mailto:<a href="mailto:simon@thekelleys.org.uk" target="_blank">simon@thekelleys.org.uk</a>>> wrote:<br>
> <br>
>     There seems to be confusion here between code style, and code<br>
>     representation.<br>
> <br>
>     Code style, ie layout, indent width, is not negotiable.<br>
> <br>
>     Code representation is the use of tab characters at 8-character stops.<br>
>     If your IDE or other device doesn't use 8 characher stops, it will<br>
>     mangle code. That doesn't mean the code is badly formatted, it means<br>
>     your display method is incompatible.<br>
> <br>
>     It's quite possible to get around this by running expand on every<br>
>     commit, so that only spaces are used in the repo. It's even possible to<br>
>     run expand on every existing file, at the expense of polluting the logs.<br>
>     I don't think there are any other downsides to this.<br>
> <br>
>     Or people could  configure IDEs and editors to use sane tab stops.<br>
> <br>
>     Cheers,<br>
> <br>
>     Simon.<br>
> <br>
>     On 07/09/2019 18:21, john doe wrote:<br>
>     > On 9/7/2019 6:25 PM, Shota Hino wrote:<br>
>     >> Whatever the width of the tab is, converting all tabs to<br>
>     whitespaces (or<br>
>     >> the other way around) would be better.<br>
>     >> If code formatting was forced at the time of each commit, there<br>
>     would be no<br>
>     >> need for anybody to set the tab width on their editor.<br>
>     >> Consistent coding style will help more developers in the future.<br>
>     >><br>
>     >><br>
>     >><br>
>     ><br>
>     > I agree, consistent code is best, clear guideline could be usefull for<br>
>     > new code.<br>
>     > Simon Kelley, the belligerent dictator of the Dnsmasq project will<br>
>     need<br>
>     > to way in on such changes though.<br>
>     ><br>
>     > --<br>
>     > John Doe<br>
>     ><br>
>     > _______________________________________________<br>
>     > Dnsmasq-discuss mailing list<br>
>     > <a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
>     <mailto:<a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank">Dnsmasq-discuss@lists.thekelleys.org.uk</a>><br>
>     > <a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" rel="noreferrer" target="_blank">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br>
>     ><br>
> <br>
>     _______________________________________________<br>
>     Dnsmasq-discuss mailing list<br>
>     <a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
>     <mailto:<a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank">Dnsmasq-discuss@lists.thekelleys.org.uk</a>><br>
>     <a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" rel="noreferrer" target="_blank">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br>
> <br>
<br>
</blockquote></div>