From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Thu, 06 Jun 2019 11:37:54 -0500 From: Dennis Lee Bieber Newsgroups: comp.lang.ada Subject: Re: Why .ads as well as .adb? Date: Thu, 06 Jun 2019 12:37:54 -0400 Organization: IISS Elusive Unicorn Message-ID: References: <28facad3-c55f-4ef2-8ef8-004925b7d1f1@googlegroups.com> User-Agent: ForteAgent/8.00.32.1272 X-No-Archive: YES MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-L9hhNfBnMznfuvAVYnkOq+bw5ac8Ue21P9qs0nLmJZt1Om8h6FGgyO5h3D1ZC8EI5P4xes3dczS8atD!kiFT9CxkFckoV+YVTJytxoFkYYTaVDt+cfGyPQdxiVS8/QPWyFFSXXEjh/KnNTGf/ExidsYi X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html 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: 2586 Xref: reader01.eternal-september.org comp.lang.ada:56500 Date: 2019-06-06T12:37:54-04:00 List-Id: On Wed, 05 Jun 2019 20:34:49 -0700, Keith Thompson declaimed the following: >The two most common layouts for C code are: > >1. Opening "{" at the end of the line, closing "}" by itself, aligned > with the beginning of the construct: > if (condition) { > statement; > statement; > } > >2. Opening "{" and closing "}" on lines by themselves: > if (condition) > { > statement; > statement; > } > >(I have my own preference, but this isn't the place to go into it.) I've encountered at least one editor that has three style options. if (condition) { statement block; } being the third. (I abhor it as it uses two indentation levels per block. My preference is your #2). {Actually, VS2017 has something like 6 styles which can be used if it can't find a file of clang formatting rules -- was going to check CCS9, but it seems to insist on downloading any updates and then checking all files before it will open... A significant time waster} -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com http://wlfraed.microdiversity.freeddns.org/