[Swift-devel] Code style

Mihael Hategan hategan at mcs.anl.gov
Tue May 14 14:43:24 CDT 2013


On Tue, 2013-05-14 at 19:39 +0000, Ben Clifford wrote:
> 
> > > - spaces instead of hard tabs. I feel adamant about this.
> > 
> > Eclipse has some options where you can do both "keep as is" (for
> > existing lines) and "use spaces for new stuff".
> 
> 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.

>  if you have some formatted code and you want to add 
> lines to it, pretty much all you can do is use the same byte sequence for 
> indents as has already been used to indent that same block, and then add 
> additional whitespace on the end to get further depth.
> 
> (mmm tabs vs spaces debate)
> 
> -- 
> 





More information about the Swift-devel mailing list