comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Ada and Java/C++
Date: Mon, 27 Aug 2012 18:16:31 -0500
Date: 2012-08-27T18:16:31-05:00	[thread overview]
Message-ID: <k1gv4k$52m$1@munin.nbi.dk> (raw)
In-Reply-To: 513d6efb-6aad-4013-8b21-37c75aa6aaf7@googlegroups.com


<kalvin.news@gmail.com> wrote in message 
news:513d6efb-6aad-4013-8b21-37c75aa6aaf7@googlegroups.com...
>Dmitry A. Kazakov wrote:
>> Popularity of a language, programming or natural, has nothing to do with
>> its syntax.

>I have a contrary opinion on this. It is about perception and familiarity: 
>If something looks
> familiar to something that you already know, it appears more appealing 
> compared to something
> that you don't know. Lisp, Forth and APL are good examples of this. If 
> Java wouldn't be so
> similar to C/C++, it may have not become the mainstream language. Think 
> about situation in
> which Java would have used syntax similar to APL or Forth.

I agree with you here (but also see below). But the syntax of a language is 
a very important part of the foundation of the language. Ada's syntax is 
designed to minimize the possibility for inadvertant errors, which is not 
the case with the C syntax. (See, for instance, the discussion in Rationale 
2012 about this: 
http://www.ada-auth.org/standards/12rat/html/Rat12-3-2.html.)

You can build huge ediface on top of any sort of foundation, but if the 
foundation is rotten (as I believe it is in the case of the C syntax), you 
are going to have problems. Personally, I think a substantial part of the 
benefit of using Ada is from the much safer syntax. (I'm well aware that 
this does not match conventional wisdom; so you'll have to draw your own 
conclusions.)

>Think about learning a new language: It is easier to learn a new language 
>that has resemblance
> to the language you already know and speak.

Here I strongly disagree. The above might be true for natural languages, but 
for programming languages, you want the syntax of the various ones you use 
to be as different as possible. Speaking from my own experience, when 
Janus/Ada was originally constructed in Pascal, the subtle differences 
between the two languages (both in syntax and semantics) used to drive us 
nutty. We switched our development to Ada as soon as Janus/Ada was 
sufficiently capable.

I would expect similar experiences for people who have to regularly work in 
both C and Java, and I know I've seem people make comments to that effect.

To summarize: it might help for causal users to use a syntax closer to that 
of C (mainly because there are a lot of people that think that a programming 
language has to look like C), but such a syntax would reduce the value of 
Ada a lot. I suspect that it mostly would be used to write C-in-Ada, which 
would have no added benefit at all. (And that would probably have the 
opposite effect to that you suggest.)

In any case, nothing prevents one from creating a preprocessor that converts 
a C-like syntax to Ada. If you think it is such a good idea, go create it 
and prove it to the skeptics. If it gets a lot of use, compilers will adopt 
it (and if not, no harm done).

                                                 Randy.






  parent reply	other threads:[~2012-08-27 23:16 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-27 10:46 Ada and Java/C++ kalvin.news
2012-08-27 11:48 ` Dmitry A. Kazakov
2012-08-27 13:44   ` kalvin.news
2012-08-27 14:33     ` Dmitry A. Kazakov
2012-08-27 15:26     ` J-P. Rosen
2012-08-27 15:46       ` Georg Bauhaus
2012-08-27 16:08       ` kalvin.news
2012-08-27 23:16     ` Randy Brukardt [this message]
2012-08-28  2:14       ` Adam Beneschan
2012-08-28 10:50         ` Brian Drummond
2012-08-28 14:22           ` kalvin.news
     [not found]           ` <gcup38ldi4afrt9q2uj70qoe7l2lcn4rk1@invalid.netcom.com>
2012-08-28 23:00             ` Brian Drummond
     [not found]               ` <fouq38tqdp7fh86l2dp2pmr8jfdgi24i7j@invalid.netcom.com>
2012-08-29 10:39                 ` Brian Drummond
2012-08-27 14:35   ` Nomen Nescio
2012-08-27 21:23     ` gautier_niouzes
2012-08-27 14:09 ` Niklas Holsti
     [not found] ` <al1n38tdd0tq6p1os6p6angt91mginhoup@invalid.netcom.com>
2012-08-27 14:49   ` kalvin.news
2012-08-27 14:53   ` kalvin.news
2012-08-27 19:46     ` Shark8
2012-08-27 20:11     ` gautier_niouzes
2012-08-27 19:41 ` Shark8
2012-08-27 20:06 ` gautier_niouzes
2012-08-28  5:35 ` kalvin.news
2012-08-28  6:57   ` Shark8
2012-08-28  8:28     ` kalvin.news
2012-08-28 10:00       ` Niklas Holsti
2012-08-28  8:31     ` kalvin.news
2012-08-28  9:15       ` Niklas Holsti
2012-08-28  9:54   ` gautier_niouzes
2012-08-28 14:08     ` kalvin.news
2012-08-29 10:52 ` kalvin.news
replies disabled

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