comp.lang.ada
 help / color / mirror / Atom feed
From: walter!obry@uunet.uu.net  (Pascal Obry)
Subject: Re: FORTRAN bug(was Re: C++ vs. Ada -- Is Ada loosing?)
Date: 16 Dec 92 17:40:56 GMT	[thread overview]
Message-ID: <OBRY.92Dec16094056@cheesesteak.flash.bellcore.com> (raw)

>>Why do you use english ?
>
>Because it's what everyone else speaks?  If this is your defense of

I hope you didn't mean *everyone*, because in this case you would have
forgotten 3/4 of the world (and maybe more in the univers). Anyhow if you mean
that you should travel a bit !

>Ada, it is a poor one.  If you want something that 'everybody can
>read', you should be using COBOL.  It was designed with the idea in
>mind that MANAGERS should be able to look at a program and tell what
>it does without knowing the language. 

I had to learn COBOL for one of my courses 5 years ago, and by the way it
does very well what it is suppose to do : file manipulation and form to enter
data.

>Why do you use english ?

Because it's what everyone else speaks?  If this is your defense of
Ada, it is a poor one.  If you want something that 'everybody can
read', you should be using COBOL.  It was designed with the idea in
mind that MANAGERS should be able to look at a program and tell what
it does without knowing the language. 

>( > @ - + / ~ $

>==============================
>Because I'am the only one to know this language I put below the dictionary :

>> this
>( try
>$ word
>+ it
>, -
>/ is
>@ language
>~ without
>==============================


>>I like Ada because you can *read* it. And this seem to be one of the most
>>important thing about a language. With goods choices for the identifier, you
>>can read an Ada progam like a text, you don't have to translate what you read

>>Golly gee whiz, you have to actually KNOW THE LANGUAGE to read it.
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>Horrors!  Oddly enough, I expect anyone reading a program and
>>expecting to understand it to be able to read the language.  If you
>>hand somebody a bunch of Ada code, they're going to be able to read
>>and understand it?  Gee, how is that going to work?  They're going to
>>know what pragmas do, things like packages and generics, etc.?  I
>>don't THINK so.

I don't agree here. let me take a small example :

In C++ :

	cout << "un text" << endl;
	c++;
	if (i) { ... };                 /* let suppose i is an integer */
	for (k=0; k<4; k++) {...}

In Ada :

	text_io.put_line ("Un text");
	c := c + 1;
	if i = 1 then ... end if;
	for k in 0 .. 3 loop ... end loop;

I bet that people that don't know either C++ and Ada will understand the Ada
code. Could we think the same of C++ code ? there is too much conventions
in C/C++ :

	if (i) {..}
		true if i = 1, you can invent that, you have to learn it

	for (k=0; k<4; k++) {...}
		first parameter is to initialize
		second stop test
		third whatever you want

Ok, this is only one instruction. But don't you think that a whole program is
a set of instructions.

And we can find a lot of more exemple like this. But I don't want to start a
language war.

Anyhow this is only one part of the readability. The low-level readability or
instruction readability. I don't mean that an Ada algorithm of many lines will
be easy to understand at the first look. But at least, I think it will be
easy to follow line by line what it does.

An Ada program does what it says.

Pascal.

--

-------------------------------------------------------------------------------
--  Pascal OBRY								     --
--  Room 2D-337				e_mail : obry@bellcore.com  	     --
--  Bellcore								     --
--  445 South Street			voice : 1 - 201 829 4039	     --
--  Post Office Box 1910		FAX   : 1 - 201 829 5981	     --
--  Morristown, New Jersey 07962-1910					     --
-------------------------------------------------------------------------------

  `` inheritance is surely a good answer, but who knows the question ? ''

             reply	other threads:[~1992-12-16 17:40 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1992-12-16 17:40 Pascal Obry [this message]
  -- strict thread matches above, loose matches on Subject: below --
1992-12-18 21:56 FORTRAN bug(was Re: C++ vs. Ada -- Is Ada loosing?) Michael Feldman
1992-12-18  9:22 agate!spool.mu.edu!uwm.edu!zaphod.mps.ohio-state.edu!caen!uvaarpa!vger.ns
1992-12-16 16:02 fred j mccall 575-3539
1992-12-15 16:36 enterpoop.mit.edu!bloom-picayune.mit.edu!mintaka.lcs.mit.edu!ogicse!uwm.e
1992-12-15  2:57 Michael Feldman
1992-12-15  2:43 Michael Feldman
1992-12-14 22:15 John Bollenbacher
1992-12-14 18:33 J. Giles
1992-12-14 17:04 agate!spool.mu.edu!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!csc.ti.com!til
1992-12-14 17:00 agate!spool.mu.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!mksol!mccall
1992-12-14 16:55 agate!spool.mu.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!mksol!mccall
1992-12-12 17:53 Michael Feldman
1992-12-12 14:34 Fergus Jam es HENDERSON
1992-12-12 14:20 Fergus Jam es HENDERSON
1992-12-12  6:04 Bob Kitzberger
1992-12-12  0:42 Pascal Obry
1992-12-11 23:22 Tucker Taft
1992-12-11 22:24 John Nestoriak III
1992-12-11 21:31 Michael Feldman
1992-12-11 21:04 Tucker Taft
1992-12-11 15:38 Robb Nebbe
1992-12-11 13:29 agate!spool.mu.edu!uwm.edu!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!mkso
1992-12-09  6:02 Michael Feldman
1992-12-08 17:25 J. Giles
replies disabled

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