Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Wed, 11 May 2011 08:42:08 -0500 Message-ID: <4DCA9233.1D4C@mindspring.com> Date: Wed, 11 May 2011 09:42:11 -0400 From: pete Reply-To: pfiland@mindspring.com Organization: PF X-Mailer: Mozilla 3.04Gold (WinNT; I) MIME-Version: 1.0 Newsgroups: comp.lang.c Subject: Re: compiler switch to indicate "end of function"? References: <78ab67fd-3a5e-49f2-8179-9501f22cbe26@n10g2000yqf.googlegroups.com> <936e1159-697f-4f9f-9b20-c1ec8fdf9364@35g2000yqy.googlegroups.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 40 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 4.154.223.42 X-Trace: sv3-rJSs7b1209CH1gmULrnHKFSJkvxNDHR4qKe9X77fV1UIkEtFCJi47giR17QveWNBpCwYPNJWg8tKvjT!DvDsGnRbPhOdh0X0CCPIViurdLwhxawC9NFFUVK7NXldCW4fpDq7LIYhMT+0AhwuZMbt2fFv7Ud6!zahMIuFeiw== X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2692 Xref: x330-a1.tempe.blueboxinc.net comp.lang.c:3751 luser- -droog wrote: > > On May 10, 4:22 pm, Seebs wrote: > > On 2011-05-10, Kleuskes & Moos wrote: > > > > > { > > > /* Some comment */ > > > including one too few "{" and "}" > > > } > > > I'm sure you'll make a lot less errors. Braces are so important in > > > determining the structure of a C program, they deserve their own line. > > > > This is not 1TBS. Therefore it's wrong. > > > > Here's the thing: Brace styles are all viable. Any of them will work. > > But it's VERY useful to have everyone use the same style. > > > > There is no way to pick a standard except by appeal to authority. Therefore, > > use the brace style from K&R. That's the closest we'll ever have to a > > proper authority. > > > > > And don't try to tell me that whitespace costs money, since that's > > > only valid on paper. > > > > It's not money, it's visual real estate. I can only see so many lines > > at a time. Seeing a few more lines of code at a time is a pretty noticeable > > payoff. > > > > Strongly agree. I do most of my work on 9-inch notebook screen. > To get more than 25 or so lines, I'd have to make the font smaller > and harder to read. I'm on the other side of that. I don't write programs that fit on a screen anymore, so my preference is for what does show up on screen to be as legible as possible. -- pete