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,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!transit3.readnews.com!news-out.readnews.com!news-xxxfer.readnews.com!news-out.readnews.com!spool-big1.readnews.com!not-for-mail Newsgroups: comp.lang.ada Subject: Quick question about Ada code formatting. From: "Peter C. Chapin" Organization: Kelsey Mountain Software Message-ID: User-Agent: Xnews/5.04.25 Date: 18 Feb 2006 12:19:59 GMT NNTP-Posting-Host: 1049ba8a.news.sover.net X-Trace: DXC=FYQGiBo]399nGf_^mAl3?@`i3kGa5kZQ=Pc6mTPJkRD\PnA;g\Hf X-Complaints-To: abuse@sover.net Xref: g2news1.google.com comp.lang.ada:2952 Date: 2006-02-18T12:19:59+00:00 List-Id: I realize formatting style varies from person to person and from organization to organization. Nevertheless some programming language communities have definite community standards about how certain language constructs should be formatted. For example, it seems universal in this community to name variables This_Way. When it comes to calling subprograms I've seen some sources that put a space between the name of the subprogram and the argument list. My_Procedure (X, Y, Z); A := My_Function (B); When wrapping such calls the entire argument list is moved down to the next line. My_Procedure (Very_Long, Argument_List, With_Many, Arguments); In other communities (C/C++) it is more common to leave the space out and also to leave the opening '(' on the same line as the procedure name. 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? Peter 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.