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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,8b756d9a0afb052a X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.scarlet.biz!news.scarlet.biz.POSTED!not-for-mail NNTP-Posting-Date: Sat, 18 Feb 2006 07:02:45 -0600 From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Quick question about Ada code formatting. References: Date: Sat, 18 Feb 2006 14:00:46 +0100 Message-ID: <87wtfsrfcx.fsf@ludovic-brenta.org> User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:0HGpJxT6ep8JgSBdT1BSlYdG1+M= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: 83.134.242.231 X-Trace: sv3-fGeYD9qOE0K+vZw72EHB39UzlX4W3qL2LodSD3pzUx4bbxoo4cogAvhkboyW64RHLEY/WC/7K/P5xi+!mf5E7pTPRZP6KcJX6C0RfBKz3NA+jEoQ31PJEx7SMO/kfDhmx3h8i/25WnSKAAoqkak+VLXw1W8= X-Complaints-To: abuse@scarlet.be X-DMCA-Complaints-To: abuse@scarlet.biz 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.32 Xref: g2news1.google.com comp.lang.ada:2953 Date: 2006-02-18T14:00:46+01:00 List-Id: "Peter C. Chapin" writes: > I'm wondering how universal the above style is among Ada > programmers. In other words: would it be desirable for me to adopt > it as part of my personal style guide? Yes, this is quite universal, because of the Ada Quality and Style Guide[1]. Most coding standards I've seen take the AQ&SG as a starting point and recommend, or even mandate, the same indentation style. Another indentation style which I find quite common is: Procedure (First_Formal => First_Actual, Second_Formal => Second_Actual); > P.S. Is there an accepted indentation depth among Ada programmers? I've > seen three spaces in several places and I notice both Ada-mode in Emacs > and GPS use three spaces by default. Yes. Three shall be the number of spaces, and the number of spaces shall be three. No more, no less. Two shalt thou not indent, except that thou then proceedest to three. Four is right out. This is also from the AQ&SG. [1] http://www.adaic.org/docs/95style/html/cover.html -- Ludovic Brenta.