LWN.net Logo

Eight character tabs

Eight character tabs

Posted Oct 30, 2012 18:11 UTC (Tue) by marcH (subscriber, #57642)
In reply to: Eight character tabs by paulj
Parent article: Thoughts on the ext4 panic

> But yes, over all, too many people will get tabs wrong that standardising on spaces - inferior as they are - is the only option.

Tab indentation was invented to illustrate "The perfect is the enemy of the good".

Let everyone have his own indentation taste from the same source? Great idea on paper. Falls apart on a regular basis. Because it's not compatible with lining up across lines, because it's not compatible with a max width, etc. And because people are only human and will not be disciplined enough.


(Log in to post comments)

Eight character tabs

Posted Oct 31, 2012 11:37 UTC (Wed) by Jonno (subscriber, #49613) [Link]

Lining up arguments in tab-indented code works just fine, iff you use the same number of tabs for indentation, and then line up the arguments with spaces.

Eight character tabs

Posted Oct 31, 2012 18:09 UTC (Wed) by marcH (subscriber, #57642) [Link]

"In theory, theory and practice are the same. In practice, they are not."

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds