Conversation
Notices
-
Which one to use in !vim? tabs or spaces for indentation? !ubuntu Any advantage/disadvantages. It is bad to have 'em both. !c
Friday, 17-Apr-09 02:22:55 UTC from xmpp- Paulo likes this.
-
@visionofarun so long as you stick with one, you're fine. Same philosophy toward how many spaces to a tab. !vim !c
-
@visionofarun you might look at the !gnu and !linux coding style specifications. Both are in !c, but still different. !vim
-
@visionofarun AFAIK, if all things are equal it's best to pick one and stick with it. Obviously if you're working with Python, use spaces.
-
@visionofarun Linus says indentation can only be 8-space tabs, and I can think of worse people to copy. !vim !c
-
@visionofarun Spaces. Always. For anything, in any editor. Spaces always have the same width, while tabs depends on the editor.