comp.lang.ada
 help / color / mirror / Atom feed
From: Preben Randhol <randhol+abuse@pvv.org>
Subject: Re: Case dependence and coding standards
Date: Thu, 5 Jun 2003 15:36:39 +0000 (UTC)
Date: 2003-06-05T15:36:39+00:00	[thread overview]
Message-ID: <slrnbduorq.88r.randhol+abuse@kiuk0152.chembio.ntnu.no> (raw)
In-Reply-To: bbnbff$1hq$1@a1-hrz.uni-duisburg.de

Georg Bauhaus wrote:
> Here is where I'd like to see an argument, not a strong emphasis.

Cannot give you anything other than I find it easier to get an overview
of a function if it is lightly formated as I showed in my example. Other
may find that non formated is better.

>       north: Positive range 0 .. 90;  -- stops at north pole
>       west: Positive range 0 .. 360; -- around the earth
>       depth: Integer range -20_000 .. 0; -- below the sea

This is absolutly not nice. You should at least have a space after the
variable before the :. I would also want to format the comments out to
the side as they clutter the code. I don't like to use a lot of comments
at the end of the line.

         north : Positive range 0 .. 90;     -- stops at north pole
         west : Positive range 0 .. 360;     -- around the earth
         depth : Integer range -20_000 .. 0; -- below the sea


> This could be formatted to look nicely ordered like
> 
>       north : Positive range       0 .. 90;   -- stops at north pole
>       west  : Positive range       0 .. 360;  -- around the earth
>       depth : Integer  range -20_000 .. 0;    -- below the sea

I would have done:

       north : Positive range 0 .. 90;          -- stops at north pole
       west  : Positive range 0 .. 360;         -- around the earth
       depth : Integer  range -20_000 .. 0;     -- below the sea

if I wanted to format this.

-- 
Preben Randhol                    http://www.pvv.org/~randhol/



  reply	other threads:[~2003-06-05 15:36 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-03  5:05 Case dependence and coding standards Fionn mac Cuimhaill
2003-06-03 17:31 ` Robert A Duff
2003-06-03 17:46   ` Vinzent Hoefler
2003-06-03 19:04     ` Robert A Duff
2003-06-03 23:37       ` Randy Brukardt
2003-06-04  2:39         ` Wesley Groleau
2003-06-04 13:28           ` Georg Bauhaus
2003-06-04 15:44             ` Preben Randhol
2003-06-04 22:32             ` Wesley Groleau
2003-06-05 12:01               ` Georg Bauhaus
2003-06-05 15:36                 ` Preben Randhol [this message]
2003-06-05 17:41                   ` Wesley Groleau
2003-06-05 17:47                     ` Preben Randhol
2003-06-05 17:51                       ` Preben Randhol
2003-06-05 18:32                 ` Wesley Groleau
2003-06-06  8:58                   ` Georg Bauhaus
2003-06-07  0:53                     ` Wesley Groleau
2003-06-10 15:05                       ` Georg Bauhaus
2003-06-05 17:32               ` Wesley Groleau
2003-06-05 17:43                 ` Preben Randhol
2003-06-04  8:39       ` Vinzent Hoefler
2003-06-04 16:32         ` Stephen Leake
2003-06-05  1:27           ` Robert I. Eachus
2003-06-05  7:47           ` Vinzent Hoefler
2003-06-05 17:47             ` Stephen Leake
2003-06-05 19:43               ` Wesley Groleau
2003-06-06  9:27               ` Georg Bauhaus
2003-06-06 10:29                 ` Preben Randhol
2003-06-03 19:38   ` Stephen Leake
  -- strict thread matches above, loose matches on Subject: below --
2003-06-04 17:00 Lionel.DRAGHI
replies disabled

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