[Swift-devel] Code style
Ben Clifford
benc at hawaga.org.uk
Tue May 14 14:47:49 CDT 2013
> > both of those at the same time is often terrible because of the ambiguity
> > in how long a tab is.
>
> There is an option for that, and there you can say 1 tab = 4 spaces.
But a tab isn't 4 spaces.
If someone wrote some code with tab = 4, and committed it, and someone
else wrote code with tab = 8, maybe even in the same file, there is no
consistent value to use.
The only thing you can consistently do is copy the byte sequence that was
used for the block you're adding to. (and even that only works if the
indentation in that block is already self-consistent...)
Or ban tabs and reformat them away and dock 1 beer point from each person
who committed the tabs in the first place...
--
More information about the Swift-devel
mailing list