comp.lang.ada
 help / color / mirror / Atom feed
From: Matthew Heaney <matthew_heaney@acm.org>
Subject: Re: Gnat pretty printing
Date: 1998/12/15
Date: 1998-12-15T00:00:00+00:00	[thread overview]
Message-ID: <m3pv9lb2ii.fsf@mheaney.ni.net> (raw)
In-Reply-To: 36768419.79B1F29A@pwfl.com

Marin David Condic <condicma@bogon.pwfl.com> 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...





  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 ` Steve O'Neill
1998-12-10  0:00   ` okellogg
1998-12-11  0:00     ` dewarr
1998-12-09  0:00 ` dennison
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       ` Simon Wright
1998-12-14  0:00         ` dennison
1998-12-15  0:00         ` Marin David Condic
1998-12-15  0:00           ` Matthew Heaney [this message]
1998-12-15  0:00             ` Marin David Condic
1998-12-19  0:00               ` Lieven Marchand
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                 ` Chris Morgan
1998-12-18  0:00                   ` dewar
1998-12-16  0:00                 ` Matthew Heaney
1998-12-17  0:00                 ` Dale Stanbrough
1998-12-16  0:00               ` Matthew Heaney
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-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       ` Bob Collins
1998-12-11  0:00       ` dewarr
1998-12-14  0:00     ` Robert I. Eachus
1998-12-21  0:00     ` BARDIN Marc
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
replies disabled

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