4 ms·
> Use tabs and people can set them the way they want. If members of a team set tabs the way they want, how do they limit line lengths to 80 columns, which is a
by subsection1h 13y ago
> Use tabs and people can set them the way they want.
If members of a team set tabs the way they want, how do they limit line lengths to 80 columns, which is a requirement that's specified in the Linux kernel coding style that was linked to in the comment you replied to?
- gcb1 13y agonot an issue. by assuming it is two spaces. it is still better to have to switch to 2 tabwidth before committing to check line length then to be forced to use 2 spaces forever.
- philjackson 13y agoHow about lining things up? Take a long function call where you want to wrap the params: hello( world, solarsytem, universe ... ); You can't if you just use tabs - you would have to mix tabs and spaces.
- Pxtl 13y agoUse hello( world, solarsytem, universe ); which doesn't require perfect line-up with the first entry, and is still clear to the reader what's going on.
- MikeTLive 13y agothis is how i code. 1st pass: func( ); 2nd pass: put in the args. this ensures the closing paren immediately and makes it possible to comment out things that are inside the parens.
- zobzu 13y agoso thats the reason why people are set on using spaces? man :(