comp.lang.ada
 help / color / mirror / Atom feed
From: Richard D Riehle <laoXhai@ix.netcom.com>
Subject: Re: STL, Ada, C++ (Was Re: The Next Microsoft?)
Date: 2000/05/09
Date: 2000-05-09T04:18:10+00:00	[thread overview]
Message-ID: <8f83i2$osk$1@slb1.atl.mindspring.net> (raw)
In-Reply-To: t7og6gahgm.fsf@calumny.jyacc.com

In article <t7og6gahgm.fsf@calumny.jyacc.com>,
	Hyman Rosen <hymie@prolifics.com> wrote:

>Robert Dewar <robert_dewar@my-deja.com> writes:
>> I am not at all convinced that automatic instantiation is
>> a help to the reader and maintainer, on the contrary, it
>> seems very awkward to have uses of templates not be visible
>> from this point of view.
>
>I consider automatic instantiation of templates to be the compile-time
>polymorphism equivalent of run-time dispatching on class-wide types.
>When you make a dispatching call, you do not know what function you
>are calling. Similarly, you should be able to call a generic function
>without explicitly stating which one you are calling.

I wonder if there is a trade-off here between convenience and type
safety.  Ada tends to lean heavily in the direction of safety,
and automatic instantiation seems not quite as focused on that issue.
For example, the model for generic formal package parameters in Ada
forces the designer to create a generic signature package corresponding to
the parameter.  This makes automatic instantiation quite difficult to
achieve, but has the benefit of pretty thorough compile-time evaluation
of all the elements of the signature.  

The goals of C++ are different from those of Ada.  If a programmer feels
more comfortable with C++ goals, then C++ is a good choice.  If someone
feels better with the goals of Ada, then Ada should be the choice.  Also,
those goals are intended to satisfy different levels of confidence in the
final product.  Would anyone who knows C++ well feel comfortable knowing the
software for the avionics on their aircraft was programmed in C++?  Most 
of those I ask, say, "No way."   Ada is targeted to exactly that kind of
application environment.  Scaling back a bit from that extreme, Ada still
inspires a greater sense of confidence in its goals than C++ when safety
is an issue.  Automatic instantiation does not inspire confidence, but that
may not matter if a software failure does not kill or maim anyone.  

Richard Riehle




  parent reply	other threads:[~2000-05-09  0:00 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <8eg37k$15n$1@nnrp1.deja.com>
     [not found] ` <8epkoa$b8b$1@nnrp1.deja.com>
     [not found]   ` <E$OcUgAHHIE5Ewfl@quik.freeuk.net>
     [not found]     ` <8eu0ob$7qv$1@nnrp1.deja.com>
2000-05-05  0:00       ` The Next Microsoft? Ray Blaak
2000-05-05  0:00         ` Mark Atwood
2000-05-05  0:00           ` Ayende Rahien
2000-05-05  0:00           ` Hyman Rosen
2000-05-05  0:00             ` Mark Atwood
2000-05-05  0:00               ` Hyman Rosen
2000-05-05  0:00                 ` Jon S Anthony
2000-05-05  0:00                   ` Hyman Rosen
2000-05-05  0:00                     ` Bill Greene
2000-05-06  0:00                       ` Ehud Lamm
2000-05-07  0:00                       ` STL, Ada, C++ (Was Re: The Next Microsoft?) Brian Rogoff
2000-05-08  0:00                         ` Robert Dewar
2000-05-07  0:00                           ` Brian Rogoff
2000-05-08  0:00                           ` Pascal Obry
2000-05-08  0:00                             ` Brian Rogoff
2000-05-08  0:00                               ` Robert Dewar
2000-05-08  0:00                                 ` Pascal Obry
2000-05-09  0:00                                 ` STL, Ada, C++ Harry Erwin
2000-05-09  0:00                                   ` Robert A Duff
2000-05-09  0:00                               ` STL, Ada, C++ (Was Re: The Next Microsoft?) Marin D. Condic
2000-05-09  0:00                                 ` Robert Dewar
2000-05-09  0:00                                   ` Marin D. Condic
2000-05-08  0:00                           ` Hyman Rosen
2000-05-08  0:00                             ` Brian Rogoff
2000-05-09  0:00                             ` Richard D Riehle [this message]
2000-05-09  0:00                               ` Brian Rogoff
2000-05-09  0:00                                 ` Hyman Rosen
2000-05-09  0:00                                   ` Robert A Duff
2000-05-09  0:00                                     ` Hyman Rosen
2000-05-09  0:00                                 ` Brian Rogoff
2000-05-10  0:00                                 ` Richard D Riehle
2000-05-10  0:00                                   ` Brian Rogoff
2000-05-08  0:00                         ` Florian Weimer
2000-05-05  0:00                     ` The Next Microsoft? Jon S Anthony
2000-05-05  0:00         ` Bobby D. Bryant
replies disabled

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