comp.lang.ada
 help / color / mirror / Atom feed
From: abn@news.sema-grenoble.fr (Axel Boness)
Subject: Re: Code Formatters
Date: 1996/11/12
Date: 1996-11-12T00:00:00+00:00	[thread overview]
Message-ID: <1996Nov12.094644.560@inet2> (raw)
In-Reply-To: 327A17CA.6B30@gsfc.nasa.gov



In article <dewar.847456987@merv>, dewar@merv.cs.nyu.edu (Robert Dewar) writes:
|>Axel says
|>
|>"Therefore I would like to work with a language where presentation is
|>normalised  (enforced by the editor) even if it's not as beautifull as
|>it may be."

I meant "enforced by the language". I deeply apologise not to have
reread my posting before submitting it. It took me a lot of time to
write the posting because english is not my mother tongue, and I didn't
give myself time to reread (well I have to work from time to time :-).

|>For a *language* that enforces style, COBOL comes closest probably, but
|>still leaves LOTS unsaid, and extensive coding standards are still needed.
|>I know of no *language* so tightly defined as to make auxiliary style
|>guidelines unnecessary.

There are two major kinds of rules:
1) presentation (I mean indentation, line size, relative position of
keywords, ...)
2) programming style (choice of the identifier (size and meaning), volume
of the comments, size of the subprograms...)

Type 1) rule may be clearly expressed even if the result of
applying these rules is not always good looking. There are always
pathological cases.
Type 2) rule are part of the programming activity and are personnal to
each developper even if it's possible to give bounds with programming
rules (like those in the Ada style guidebook).

|>Of these, I prefer checks in the compiler (as we use in GNAT, with -gnatg)
|>but these are seldome more than very simple issues. I personally don't
|>like any editor that messes with me in any way (I hate templates or any
|>kind of on the fly fixup of what I type), but others really like editors
|>that help out (e.g. Ada mode in EMACS).

I do have problems with such editors. But if it's the price to pay to
have homogeneous code (I mean presentation), I'm willing to pay, if it's
"universal".

-------------------------------------------------------------------
Axel Boness

http://www.anywhere.com/standard_disclaimer.html

Tel : (33) 4 76 41 46 00 (4811)        Fax : (33) 4 76 41 47 47
E-Mail : Axel.Boness@Sema-Grenoble.fr




  parent reply	other threads:[~1996-11-12  0:00 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-10-28  0:00 Code Formatters Dave Smith
1996-10-29  0:00 ` Frank C. Post
1996-11-01  0:00 ` Mike Stark
1996-11-04  0:00   ` Robert Dewar
1996-11-05  0:00     ` Philip Brashear
1996-11-05  0:00       ` John English
1996-11-05  0:00   ` Ole-Hjalmar Kristensen FOU.TD/DELAB
1996-11-05  0:00     ` Robert Dewar
1996-11-05  0:00       ` Larry Kilgallen
1996-11-05  0:00         ` Robert Dewar
1996-11-06  0:00           ` Dave Smith
1996-11-06  0:00             ` Larry Kilgallen
1996-11-08  0:00               ` Robert Dewar
1996-11-06  0:00             ` Robert Dewar
1996-11-06  0:00   ` Mike Stark
1996-11-07  0:00   ` Axel Boness
1996-11-08  0:00     ` Robert Dewar
1996-11-09  0:00   ` Simon Wright
1996-11-12  0:00   ` Axel Boness [this message]
  -- strict thread matches above, loose matches on Subject: below --
1996-11-05  0:00 Marin David Condic, 561.796.8997, M/S 731-93
1996-11-14  0:00 Simon Johnston
replies disabled

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