comp.lang.ada
 help / color / mirror / Atom feed
From: dennison@telepath.com
Subject: Re: Gnat pretty printing
Date: 1998/12/15
Date: 1998-12-15T00:00:00+00:00	[thread overview]
Message-ID: <756f3f$pjn$1@nnrp1.dejanews.com> (raw)
In-Reply-To: 36768419.79B1F29A@pwfl.com

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    




  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 ` Marin David Condic
1998-12-09  0:00   ` David C. Hoos
1998-12-10  0:00   ` Martin C. Carlisle
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
1998-12-15  0:00           ` dennison [this message]
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-11  0:00     ` Michael F Brenner
1998-12-11  0:00       ` Bryce Bardin
1998-12-11  0:00       ` Stephane Barbey
1998-12-11  0:00       ` dewarr
1998-12-11  0:00       ` Bob Collins
1998-12-14  0:00     ` Robert I. Eachus
1998-12-21  0:00     ` BARDIN Marc
1998-12-09  0:00 ` dennison
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 ` David C. Hoos
1998-12-09  0:00 ` Tom Moran
1998-12-09  0:00   ` dennison
1998-12-09  0:00     ` Tom Moran
replies disabled

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