comp.lang.ada
 help / color / mirror / Atom feed
From: jsa@alexandria.organon.com (Jon S Anthony)
Subject: Re: Difference between ADA and c++
Date: 1997/08/27
Date: 1997-08-27T00:00:00+00:00	[thread overview]
Message-ID: <JSA.97Aug27182138@alexandria.organon.com> (raw)
In-Reply-To: Pine.SGI.3.95.970826174002.24873B-100000@shellx.best.com


In article <Pine.SGI.3.95.970826174002.24873B-100000@shellx.best.com> Brian Rogoff <bpr@shellx.best.com> writes:

> On 26 Aug 1997, Jon S Anthony wrote:
> > 
> > I don't think Brian meant that this would make them easier to read (he
> > said "superior") I think it would make them more difficult to read,
> > but in some sense "easier to write"...
> 
> Cool, we disagree :-). Certainly, if I thought that adding type inference 

Sacre Bleu!


> Jon, I'm interested in knowing exactly why you think it would make programs 
> more difficult to read, especially if the automatic instantiation was 
> optional.

Only in the sense that many large scale things are happening and
propagating behind the scenes.  Sort of like the old issue with macros
where you can end up not having even a clue as to what is happening or
what the actual result is.  Of course, as you say eleswhere, this is
simply a matter of abuse (vs. use).


> My experience has been that long instantiation sections tend to
> contribute nothing to my understanding of a program, much like most
> of the comments I read, and just obscure things. I certainly accept
> that your experience might be different, so I'm all ears.

This is an excellent point.  I think you said it elsewhere as "more
visible code does not imply more clear".


> Have you used Haskell or ML (SML or CAML)? These languages do type

I've looked into ML and now (from an earlier suggestion by you) OCAML.


> inference for everything, and I find the short code to be fairly
> readable.

Yes, but I'm not sure how well this translates for large scale system
maintenance and understanding.  When you get down to it, type
inference is more an efficiency thing (literally and for the writer as
well) than anything else (another example, Baker has an interesting
paper on how to piggy back storage inference on top of type inference
to increase GC efficiency).


> I think it is better to be mostly explicit, and so I favor the Ada
> approach in general, but a little type inference in the right place
> seems like a big win.

Sounds reasonable, but how/where do you draw the line?  Maybe that's
easier than I think??

/Jon
-- 
Jon Anthony
OMI, Belmont, MA 02178, 617.484.3383 
"Nightmares - Ha!  The way my life's been going lately,
 Who'd notice?"  -- Londo Mollari




      parent reply	other threads:[~1997-08-27  0:00 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-08-22  0:00 Difference between ADA and c++ Mr Doshi
1997-08-23  0:00 ` Robert Munck
     [not found] ` <01bcafdf$50784b80$7774d8cc@fatman>
1997-08-23  0:00   ` Library model in Ada. was " Nasser
1997-08-24  0:00     ` Dale Stanbrough
1997-08-24  0:00       ` Robert Dewar
1997-08-24  0:00     ` Library model in Ada. was " Robert Dewar
1997-08-23  0:00   ` Nasser
1997-08-24  0:00     ` Robert Dewar
     [not found]       ` <340262F6.32D3@mcs.com>
     [not found]         ` <dewar.872614961@merv>
     [not found]           ` <34043769.29EF@gsfc.nasa.gov>
1997-08-27  0:00             ` Robert Dewar
1997-08-28  0:00         ` Samuel Mize
     [not found]         ` <3403FFBA.1FDC@amst.co.at>
     [not found]           ` <34045A8A.52E7@gsfc.nasa.gov>
1997-08-28  0:00             ` Reasons why Ada is no success yet Joachim Schroeer
     [not found]         ` <5u3ckv$6bo$1@goanna.cs.rmit.edu.au>
1997-08-29  0:00           ` Difference between ADA and c++ Michael Young
1997-08-25  0:00   ` Brian Rogoff
     [not found]     ` <340340C1.72A7@pseserv3.fw.hac.com>
     [not found]       ` <Pine.SGI.3.95.970826175504.24873D-100000@shellx.best.com>
     [not found]         ` <3403A080.2A07@pseserv3.fw.hac.com>
1997-08-27  0:00           ` Jon S Anthony
1997-08-27  0:00           ` Brian Rogoff
     [not found]     ` <5u0hj7$enj$1@goanna.cs.rmit.edu.au>
1997-08-27  0:00       ` Jon S Anthony
     [not found]     ` <dewar.872607709@merv>
     [not found]       ` <JSA.97Aug26152737@alexandria.organon.com>
1997-08-27  0:00         ` Robert Dewar
1997-08-27  0:00           ` Jon S Anthony
     [not found]         ` <Pine.SGI.3.95.970826174002.24873B-100000@shellx.best.com>
1997-08-27  0:00           ` Jon S Anthony [this message]
replies disabled

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