[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Debian coding style?



> > 	- tabs: 2 spaces
> 
> As I've read the rest of the stuff (not quoted here), the guidelines call
> for the size of tab stops to be changed and for tab characters to be used.
> This is generally EXTREMELY BAD practice in unix/linux code, as most
> editors default to 8 character tab stops, not all of them let you change
> it.

I don't think they mean that <tab> should be 2 chars, but rather that 
identation should be 2 chars. And that's exactly what I use :)

> 
> > 	- curly braces alway on next line
> > 		ie if (...)
> > 			 {
> > 			 }
> > 			 else
> > 			 {
> > 			 }
> 
> Well I think it looks ugly, but my idea of the OTBS (one true brace style)
> is the K&R one

Same here. And I cannot imagine anything would make me other style.

> if (condition) {
>     statements
> } else {
>     other stuff
> }

Alex Y.

-- 
   _ 
 _( )_
(     (o___           +-------------------------------------------+
 |      _ 7           |            Alexander Yukhimets            |
  \    (")            |       http://pages.nyu.edu/~aqy6633/      |
  /     \ \           +-------------------------------------------+


Reply to: