Re: Promoting unsigned long int to long int
- From: jt@xxxxxxxxxxx (Jens Thoms Toerring)
- Date: 30 Jun 2008 18:13:38 GMT
pereges <Broli00@xxxxxxxxx> wrote:
On Jun 30, 9:44 pm, j...@xxxxxxxxxxx (Jens Thoms Toerring) wrote:
You don't have to put all arguments etc. on a single line, e.g.
void
quicksort( vector ** parent_vpa,
unsigned long left,
unsigned long right,
unsigned char axis )
will do nicely and may even increases readabilty (and there's
still space for adding a short comment;-)
Just a style question (I'm cleaning up my code)
Which of the two in your opinion is better ?
void quicksort( vector ** parent_vpa,
unsigned long left,
unsigned long right,
unsigned char axis ) {
....
....
}
OR
void quicksort( vector ** parent_vpa,
unsigned long left,
unsigned long right,
unsigned char axis )
{
....
....
}
I usually go for the way that has more white-space, probably
because my eyes aren't as good anymore as they used to be,
so I usually put the opening brace on a new line (at least
when I am writing C, in Perl I do it the other way round;-).
So I personally don't mind much. Just pick something that
looks good to you and is logically consistent (or, if you
are working somewhere, use the in-house style) and use that
consistently.
Regards, Jens
--
\ Jens Thoms Toerring ___ jt@xxxxxxxxxxx
\__________________________ http://toerring.de
.
- References:
- Promoting unsigned long int to long int
- From: pereges
- Re: Promoting unsigned long int to long int
- From: Keith Thompson
- Re: Promoting unsigned long int to long int
- From: pereges
- Re: Promoting unsigned long int to long int
- From: Jens Thoms Toerring
- Re: Promoting unsigned long int to long int
- From: pereges
- Promoting unsigned long int to long int
- Prev by Date: Re: OOP
- Next by Date: Re: Promoting unsigned long int to long int
- Previous by thread: Re: Promoting unsigned long int to long int
- Next by thread: How do you update a Makefile?
- Index(es):