comp.lang.ada
 help / color / mirror / Atom feed
From: Marin David Condic <condicma@bogon.pwfl.com>
Subject: Re: Gnat pretty printing
Date: 1998/12/15
Date: 1998-12-15T00:00:00+00:00	[thread overview]
Message-ID: <36768419.79B1F29A@pwfl.com> (raw)
In-Reply-To: x7v3e6lu3eh.fsf@pogner.demon.co.uk

Simon Wright wrote:
> 
> Marin David Condic <condicma@bogon.pwfl.com> writes:
> 
> [..]
> >     procedure Pop (
> >         Item            :    out Element_Ptr_Type ;
> >         List            : in out List_Type) is
> [..]
> > formatting style is that it is extremely regular & predictable with a
> > visually pleasing alignment of related objects. I'm not sure it is
> [..]
> 
> I don't think we shall ever agree on that style! The dangling ( after
> Pop is my pet hate, I fear. Customisability is the best bet ..
> 
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?)

MDC
-- 
Marin David Condic
Real Time & Embedded Systems, Propulsion Systems Analysis
United Technologies, Pratt & Whitney, Large Military Engines
M/S 731-95, P.O.B. 109600, West Palm Beach, FL, 33410-9600
Ph: 561.796.8997         Fx: 561.796.4669
***To reply, remove "bogon" from the domain name.***

"Eagles may soar, but a weasle never gets sucked up into a jet engine."

        --  Author Unknown




  parent reply	other threads:[~1998-12-15  0:00 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-12-09  0:00 Gnat pretty printing Matt Tyler
1998-12-09  0:00 ` Tom Moran
1998-12-09  0:00   ` dennison
1998-12-09  0:00     ` Tom Moran
1998-12-09  0:00 ` David C. Hoos
1998-12-09  0:00 ` Steve O'Neill
1998-12-10  0:00   ` okellogg
1998-12-11  0:00     ` dewarr
1998-12-09  0:00 ` Marin David Condic
1998-12-09  0:00   ` David C. Hoos
1998-12-10  0:00   ` Martin C. Carlisle
1998-12-11  0:00     ` Michael F Brenner
1998-12-11  0:00       ` Stephane Barbey
1998-12-11  0:00       ` dewarr
1998-12-11  0:00       ` Bob Collins
1998-12-11  0:00       ` Bryce Bardin
1998-12-11  0:00     ` Marin David Condic
1998-12-12  0:00       ` Robert A Duff
1998-12-13  0:00         ` Ehud Lamm
1998-12-15  0:00         ` Marin David Condic
1998-12-12  0:00       ` Simon Wright
1998-12-14  0:00         ` dennison
1998-12-15  0:00         ` Marin David Condic [this message]
1998-12-15  0:00           ` dennison
1998-12-15  0:00             ` Marin David Condic
1998-12-16  0:00               ` dennison
1998-12-16  0:00                 ` Matthew Heaney
1998-12-16  0:00                 ` Chris Morgan
1998-12-18  0:00                   ` dewar
1998-12-17  0:00                 ` Dale Stanbrough
1998-12-16  0:00               ` Matthew Heaney
1998-12-15  0:00           ` Matthew Heaney
1998-12-15  0:00             ` Marin David Condic
1998-12-19  0:00               ` Lieven Marchand
1998-12-14  0:00     ` Robert I. Eachus
1998-12-21  0:00     ` BARDIN Marc
1998-12-09  0:00 ` dennison
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox