Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Readability part I - code Date: Sun, 24 May 2015 12:24:44 -0700 Organization: None to speak of Lines: 25 Message-ID: <87pp5ppymb.fsf@kst-u.example.com> References: <874mnojjn4.fsf@kst-u.example.com> <87d21ssawz.fsf@kst-u.example.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="9be37d943435275679235b07c7947eef"; logging-data="4792"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/6Jn+l0FIOyTiZMNbANhcM" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:383djevct5vJgC9g0oBDSTrn44g= sha1:yng9TklXdnRVM81ftyUpPC0G7ak= Xref: csiph.com comp.lang.c:62538 glen herrmannsfeldt writes: [...] > [My] preferred style seems to be rare. It is similar to K&R style, > except that I indent the } to match the statement above, instead > of below. I have been writing my C programs, and some similar > languages that way as long as I remember. I think I like it better, > as to me the closing is part of the block itself. Also, sometimes > that closing } seeme to disappear on the printed page (more than > on the screen) more with K&R style. [...] Do you mean like this? if (condition) { statement1; statement2; statement3; statement4; } -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"