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: dennison@telepath.com Subject: Re: Gnat pretty printing Date: 1998/12/15 Message-ID: <756f3f$pjn$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 422579993 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> X-Http-Proxy: 1.0 x12.dejanews.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Tue Dec 15 19:59:44 1998 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.5 [en] (WinNT; I) Date: 1998-12-15T00:00:00+00:00 List-Id: In article <36768419.79B1F29A@pwfl.com>, diespammer@pwfl.com (MDC) wrote: > 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) ; You could do what some of my anal-retentive (and english-imparied) coworkers took to doing: line up your commas or semicolons in the parameter lists with the parentheses! eg: procedure Pop ( Item : out Element_Type ; List : in out List_Type ; Flag : in Boolean ) ; Another advantage of this that they touted is that a parameter may be added or deleted at the w/o having to worry about dealing with the "no comma after the last parameter" rule. I was always quick to point out that they just moved the problem to the first parameter, and that it is very un-english like. But their overly mathematical minds just didn't care. What I actually prefer myself is the same as above, but with the semicolons where you'd expect them to be. -- T.E.D. -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own