Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Improving the program, issues with logical operators, incorrect output Date: Wed, 09 Sep 2015 13:34:37 -0700 Organization: None to speak of Lines: 21 Message-ID: References: <49a5f4a4-8d02-4a48-a338-33a7ebaed71b@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="945944de09706c9b4e29b53c9d2efdc2"; logging-data="28534"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+s9KAEHkfIThx6aBHiQKa/" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:05cjBpAAQy60Hvdgn27TyU8kS2c= sha1:tiC28AwufjiDVjFQf2vxgxRoxNo= Xref: csiph.com comp.lang.c:70076 Malcolm McLean writes: > On Wednesday, September 9, 2015 at 3:11:44 PM UTC+1, David Brown wrote: >> What I am going to recommend here is basically what is known as "the one >> true brace style". I believe it is a style that makes code structure >> clear, and minimises the risk of differences between the visual >> structure (what the code looks like to the programmer) and the syntactic >> structure (how it is actually structured, as seen by the compiler which >> ignores spacing, newlines, indentation, etc.). >> > As far as a I can ascertain, that style was used in printed books to > save vertical space. Printing is a different technology to screen > scrolling, and paper costs money. Do you have any evidence that that was the actual reason? I use the 1TBS myself, and saving vertical space is not my motivation. -- 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"