Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

  > 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?


not 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.


How 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.


Use

   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.


this 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.


so thats the reason why people are set on using spaces? man :(




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: