comp.lang.ada
 help / color / mirror / Atom feed
From: "Matthew V. Jessick" <mjessick@gte.net>
Subject: Re: Ada (was Rival JSF teams fly final STOVL flights with flair, highlight  strengths)
Date: Tue, 07 Aug 2001 04:51:45 GMT
Date: 2001-08-07T04:51:45+00:00	[thread overview]
Message-ID: <3B6F73F9.15E98173@gte.net> (raw)
In-Reply-To: s2zb7.402$NJ6.1246@www.newsranger.com


Ted Dennison wrote:

> Actually, wrong doesn't even begin to describe it. Ada supports both compile
> time and runtime polymorphism (I assume that's what's meant by "full
> polymorphism). C++ did indeed borrow some of Ada's ideas (eg: exceptions,
> generics, line comments), but by no means all the important ones. For instance
> it still does not sport any kind of native concurrency support, which is one of
> Ada's big draws. C++ does have some of C's syntax but it has a lot of its own
> too. C++ is a definite improvement over C, but its hardly a suitable substitue
> for Ada.

I've worked with UAV algorithms and software in Ada and now
work in video games using C++.
C++ to me requires considerably more discipline to program without
silly bugs.

The    if (A=B) {    mistake   where B is copied into A and if non-zero
the if condition is true.


if (A)
    B;
    C;

where C appears to be part of the loop but really isn't
just because the first programmer didn't "waste" time
putting in some "superfluous" curly braces and the maintenance
programmer wasn't sufficiently alert to catch it.

The case problem of having to hand code break statements
to separate case blocks:

switch(a)
  case b:
     sdfdasf;
     adsfdaadsf;
  case c:
    break;

In Ada, every possible value for (a) is required to be handled.
The additional error potential of hand coding break statements
is also removed.

And don't even get me started on {}{}{{{}}{}{}{}{}{{}
;}
or macros or multi-dimensional array syntax
or default argument passing by value or...

It just isn't suited to coding logic statements without
silly mistakes. (There are coding standards you can impose
to reduce these mistakes, but I miss my Ada compiler each time
I make one of them.)


- Matt





  reply	other threads:[~2001-08-07  4:51 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <BaJ97.18$IC4.17757353@newssvr16.news.prodigy.com>
     [not found] ` <945d79ff.0107312306.4665e855@posting.google.com>
     [not found]   ` <3b67fd90_2@binarykiller.newsgroups.com>
     [not found]     ` <421a7.235$0e7.91390140@newssvr16.news.prodigy.com>
     [not found]       ` <3B6A1179.26C1C04@home.com>
     [not found]         ` <3B6A15C3.8B3A9277@home.com>
2001-08-05 22:57           ` Ada (was Rival JSF teams fly final STOVL flights with flair, highlight strengths) Ken Garlington
2001-08-06  0:33             ` Bob Fritz
2001-08-06  8:33               ` Tony Gair
2001-08-07  3:31                 ` Ken Garlington
2001-08-08 20:21                   ` Mark
2001-08-07  3:31               ` Ken Garlington
2001-08-06 15:51             ` Ted Dennison
2001-08-07  4:51               ` Matthew V. Jessick [this message]
2001-08-08 16:39                 ` John Keeney
2001-08-09 22:20                   ` bendel boy
2001-08-08 17:58                 ` Emmanuel Gustin
2001-08-08 19:24                   ` Marin David Condic
2001-08-09 22:28             ` bendel boy
replies disabled

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