[wp-hackers] Please, please PLEASE use tabs instead of spaces!

lowmagnet lowmagnet at lowmag.net
Mon Aug 30 16:10:24 UTC 2004


On Mon, Aug 30, 2004 at 11:04:04AM -0500, smea gol wrote:
> Spaces look more uniform though, while tabs are often set differently
> on different editors. Also, occasionally when changing the
> reindentation - you'd have to go back and add spaces anyways - since
> tabs are set at a certain distance.

Tabs are stored as \t on unix editors, and we can re-set their spacing any time we want to (set ts=2 in vi, for example) whereas to change spaces back to tabs, you have to go through some convolutions like: s/     /^V[tab]/g 

As noted above, I like my ts at 2. some may like it at 8. I like having a choice in how my editor displays them. 

-eli



More information about the hackers mailing list