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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e9f0eae6d714d11c X-Google-Attributes: gid103376,public From: Matthew Heaney Subject: Re: Gnat pretty printing Date: 1998/12/15 Message-ID: #1/1 X-Deja-AN: 422602816 Sender: matt@mheaney.ni.net References: <74lt16$9r0@romeo.logica.co.uk> <366E9E44.AA7370C7@pwfl.com> <74on70$m9o$1@cnn.Princeton.EDU> <36714049.2C5CE298@pwfl.com> <36768419.79B1F29A@pwfl.com> NNTP-Posting-Date: Tue, 15 Dec 1998 11:58:03 PDT Newsgroups: comp.lang.ada Date: 1998-12-15T00:00:00+00:00 List-Id: Marin David Condic writes: > I used to hate the dangling "(" too. But I've grown to like it. The > reason is that sticking the "(" with the first parameter seems to upset > the regularness of it all. Somehow, it makes the first parameter > different from the rest and I never could tell if it made sense to line > up the parameter names or just indent the same amount: > > procedure Pop > (Item : out Element_Type ; > List : in out List_Type) ; > > vs > > procedure Pop > (Item : out Element_Type ; > List : in out List_Type) ; > > Either way, it just didn't seem comfortable - so I learned to like the > dangling "(". > > I'm sure we are touching off a religious war here. I will no doubt get > dozens of people out there foaming at the mouth over just how morally > evil the dangling "(" is. Oh well. I doubt if we could ever get the > whole world to agree on a formatting standard in all its details. Maybe > we just have to have enough of a consensus over the bigger things such > that Ada code has enough regularity to it to be easily recognizable. > (The character case debate seems to have been mostly settled, so maybe > there's hope for parameter lists?) If you use ada-mode with emacs, then this is a non-issue. The open paren goes where you expect it (see below), and it can format the entire parameter list (C-c C-f), even getting rid of that nasty space that preceeds the semicolons. procedure Pop (Item : out Element_Type; List : in out List_Type); I live by these words: "Get a life. Get emacs." Life is good...