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

Re: OT: Why is C so popular?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, Aug 28, 2003 at 04:35:25PM +0200, Francois Bottin wrote:
> Compare it with SUN's recomendations for Java (but useable also for C):
> if (cond) {
>     block;
> } else {
>     block;
> }
> 
> In this case I find it much better than the GNU Coding Standards, and there is
> only one line more than Python...

I tend towards K&R style from the little bit of C I've dealt with.
Allman style tends to make me read an extra { that isn't there
(because I'm expecting it on the same line as if (cond), not the next
line.  I tried GNU style, but I find it hard to type and harder to
read.

For those who have no idea what I'm babbling about...
http://ursine.ca/jargon/html/I/indent-style.html

- -- 
 .''`.     Paul Johnson <baloo@ursine.ca>
: :'  :    
`. `'`     proud Debian admin and user
  `-  Debian - when you have better things to do than fix a system
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/Tu4kUzgNqloQMwcRAm7xAJ9WYdR0pNOqMjRDK39bSdTohuk7fACeKH7X
RzwVqAMrzHxbF6+QxeCVL4Q=
=umAl
-----END PGP SIGNATURE-----



Reply to: