comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <jrcarter@acm.org>
Subject: Re: newbie inquiry
Date: Wed, 12 Jun 2002 20:14:13 GMT
Date: 2002-06-12T20:14:13+00:00	[thread overview]
Message-ID: <3D07AB92.9181741D@acm.org> (raw)
In-Reply-To: ae7rpt$kfi$1@bunyip.cc.uq.edu.au

Steven Shaw wrote:
> 
> Are there features
> in the [Ada] spec that could/should be avoided?

There are many features that could be avoided. You can avoid tasking if
your problem doesn't require it. You can avoid exceptions if you're
doing correctness proofs using SPARK. You can avoid certain numeric
types if your problem doesn't require them. I have yet to have a need
for decimal fixed point types. Other people probably have to use them
all the time.

Some people suggest that you should avoid asynchronous transfer of
control. Some people suggest that you should avoid the use clause. Some
people suggest that you should avoid the goto statement. One thing many
people, including me, think should be avoided, but many other people do
frequently, is declare derived types where the parent type is neither a
predefined type nor declared in the same declarative region as the
derived type.

A better rule is that there are features that should be used
judiciously. A feature should not be used if it makes the software hard
to read and understand, and should be used if it makes the software
easier to read and understand. There are certainly circumstances in
which very skilled, experienced, and knowledgeable people advocate using
use clauses and goto statements.

-- 
Jeff Carter
"You empty-headed animal-food-trough wiper."
Monty Python & the Holy Grail



  parent reply	other threads:[~2002-06-12 20:14 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-12 16:09 newbie inquiry Steven Shaw
2002-06-12 16:26 ` Jean-Marc Bourguet
2002-06-12 18:09   ` Pascal Obry
2002-06-12 19:50     ` Ed Falis
2002-06-14  7:27     ` Jean-Marc Bourguet
2002-06-12 18:04 ` Stephen Leake
2002-06-12 21:22   ` Mark Johnson
2002-06-12 18:05 ` Larry Kilgallen
2002-06-12 20:14 ` Jeffrey Carter [this message]
2002-06-13 15:35   ` Ted Dennison
2002-06-13 20:12     ` Freddy
2002-06-14  2:49       ` Ted Dennison
2002-06-15 21:38         ` Robert A Duff
2002-06-16 22:16           ` Ted Dennison
2002-06-13 15:19 ` Ted Dennison
2002-06-13 23:26   ` Caffeine Junky
2002-06-14  2:55     ` Ted Dennison
2002-06-14  3:29       ` Darren New
2002-06-14 18:56         ` Ted Dennison
2002-06-14 19:05           ` Darren New
replies disabled

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