comp.lang.ada
 help / color / mirror / Atom feed
From: Brian Rogoff <bpr@shell5.ba.best.com>
Subject: Re: Help me to chose between ADA 95 and C++
Date: 1999/12/13
Date: 1999-12-13T00:00:00+00:00	[thread overview]
Message-ID: <Pine.BSF.4.21.9912131540530.6417-100000@shell5.ba.best.com> (raw)
In-Reply-To: 385112AE.7E2CFA9@rdel.co.uk

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: TEXT/PLAIN; charset=X-UNKNOWN, Size: 2523 bytes --]

On Fri, 10 Dec 1999, Chris Powell wrote:
> Pascal Obry wrote:
> > Richard D Riehle <laoXhai@ix.netcom.com> a écrit dans l'article
> > <829rbv$a8m$1@nntp6.atl.mindspring.net>...
> > > Smalltalk is certainly a nicely designed language. However,
> > > if one is serious about object-oriented programming,
> > > Ada is an excellent choice. The only appropriate alternative
> > > to Ada, for serious OOP, is probably Eiffel.
> > 
> > I second that. For me the 2 bests designed languages for serious
> > (read industrial) OO development are Ada and Eiffel.
> > 
> > Pascal.
> 
> I would not recommend Ada 95 for OO development. Okay, it has all the
> benefits of Ada 83 for type safety, etc, but the syntax of its class
> programming constructs seems to make the code long winded, obscure and
> error prone. I can give examples if anyone is interested/disagrees.

Yes, examples please. 

> I suppose C++ is a swear word in this newsgroup, but I prefer it, even
> though I preferred Ada 83 to C. C++ is more type safe than C, the
> Standard Template Library (if used) can protect from memory leaks, array
> bounds checking, etc; the sorts of problems that made C unsuitable for
> 'industrial strength' development. (Ironically, C has been used for lots
> of very serious software, though).

Prefer C++ in general, for "OO" development, what? C++ certainly has a few 
things I like that Ada doesn't, and while everything you say is true, its
not enough for me. While C++ offers greater type safety than C, it offers
its own loopholes as well as most of the C ones. I still prefer Ada, which
is far safer. 

The STL is cool, and you can certainly do a variant in Ada. The Ada
version loses some of the readability of the C++ version IMO due to 
all of the instantiations but really gains in other ways since you can 
express typing information directly in the generic. Another powerful
feature of Ada generics is the ability to pass subprogram arguments; when 
combined with subprogram nesting the Ada STL has more useful functional 
programming capability than the C++ one. 

Of course, none of this is really OO, but I think OO is way overrated anyways.
Since you mention STL in the same paragraph as OO, I suppose I should ask
you what you mean by OO. Most people wouldn't consider the STL OO,
including its authors. 

I suppose I could be convinced that C++ is more convenient for a "pure OO" 
style of programming than Ada. Let's see those examples...

-- Brian








  reply	other threads:[~1999-12-13  0:00 UTC|newest]

Thread overview: 67+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-11-26  0:00 Help me to chose between ADA 95 and C++ Robert
1999-11-26  0:00 ` Preben Randhol
1999-11-26  0:00   ` Preben Randhol
1999-11-26  0:00 ` Harald Schmidt
1999-11-26  0:00   ` Andreas Winckler
1999-11-26  0:00     ` Florian Weimer
1999-12-04  0:00   ` Richard D Riehle
     [not found]     ` <01bf3e32$0b9dc880$022a6282@dieppe>
1999-12-10  0:00       ` Chris Powell
1999-12-13  0:00         ` Brian Rogoff [this message]
1999-12-14  0:00           ` Chris Powell
1999-12-14  0:00             ` Preben Randhol
1999-12-14  0:00               ` Stephen Leake
1999-12-14  0:00                 ` Tucker Taft
1999-12-15  0:00                   ` Stephen Leake
1999-12-15  0:00                 ` Preben Randhol
1999-12-14  0:00             ` Brian Rogoff
1999-12-15  0:00           ` Richard Pinkall-Pollei
1999-12-15  0:00             ` Richard Pinkall-Pollei
1999-12-21  0:00             ` Geoff Bull
1999-12-21  0:00               ` Tucker Taft
1999-12-22  0:00                 ` Ted Dennison
1999-12-13  0:00         ` Richard D Riehle
1999-12-14  0:00           ` Chris Powell
1999-12-14  0:00             ` Richard D Riehle
1999-12-14  0:00               ` Matthew Heaney
1999-12-14  0:00             ` Larry Kilgallen
1999-12-15  0:00               ` Robert A Duff
2000-01-12  0:00                 ` Richard Pinkall-Pollei
1999-12-14  0:00             ` Ray Blaak
1999-12-14  0:00             ` Simon Wright
1999-12-15  0:00               ` Chris Powell
1999-12-15  0:00                 ` Robert A Duff
1999-12-15  0:00             ` Ted Dennison
1999-12-20  0:00               ` Stefan Skoglund
1999-12-16  0:00             ` Pascal Obry
1999-12-16  0:00               ` Rakesh Malhotra
1999-12-21  0:00                 ` Geoff Bull
1999-12-16  0:00               ` Aidan Skinner
1999-12-16  0:00               ` Lutz Donnerhacke
1999-12-21  0:00             ` Robert Dewar
1999-12-21  0:00               ` Ted Dennison
1999-12-21  0:00                 ` Robert Dewar
1999-12-21  0:00               ` Chris Powell
1999-12-13  0:00         ` Marin D. Condic
1999-12-13  0:00         ` DuckE
1999-12-14  0:00           ` Matthew Heaney
1999-12-14  0:00         ` Matthew Heaney
1999-12-14  0:00           ` Chris Powell
1999-12-14  0:00             ` Stephen Leake
1999-12-23  0:00               ` Chris Powell
1999-12-14  0:00             ` Tucker Taft
1999-12-14  0:00               ` Matthew Heaney
1999-12-23  0:00               ` Chris Powell
1999-12-27  0:00                 ` Robert A Duff
1999-12-14  0:00             ` Matthew Heaney
1999-12-15  0:00               ` Hyman Rosen
1999-11-26  0:00 ` Andreas Winckler
1999-11-27  0:00 ` Lionel Draghi
  -- strict thread matches above, loose matches on Subject: below --
1999-12-14  0:00 Robert C. Leif, Ph.D.
1999-12-15  0:00 ` Richard D Riehle
1999-12-15  0:00 Robert C. Leif, Ph.D.
1999-12-16  0:00 ` Richard D Riehle
1999-12-16  0:00   ` Matthew Heaney
1999-12-17  0:00     ` Richard D Riehle
1999-12-18  0:00       ` Matthew Heaney
1999-12-20  0:00         ` Richard D Riehle
1999-12-22  0:00 Help me to chose between ADA 95 and C++ ( Ehud Lamm
replies disabled

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