From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,7b5615402713dcbb X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.204.10.88 with SMTP id o24mr1457874bko.0.1346076559685; Mon, 27 Aug 2012 07:09:19 -0700 (PDT) Received: by 10.180.24.165 with SMTP id v5mr1792816wif.1.1346076559245; Mon, 27 Aug 2012 07:09:19 -0700 (PDT) Path: m12ni141486bkm.0!nntp.google.com!news2.google.com!yt1no54774202wib.1!news-out.google.com!e9ni33949914wia.0!nntp.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Niklas Holsti Newsgroups: comp.lang.ada Subject: Re: Ada and Java/C++ Date: Mon, 27 Aug 2012 17:09:17 +0300 Organization: Tidorum Ltd Message-ID: References: <8bfbf709-18ac-43cd-b037-ce47adde96c2@googlegroups.com> Mime-Version: 1.0 X-Trace: individual.net 9DzWBQHiY6n0Ghh/Dx1wMAT3/a30yW4cpCDq5eu+M2xA69LJ8Or8445BxYyrY0g8XU Cancel-Lock: sha1:lbQ2W0Sl3DLhv9Lgs27VbiZsKco= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:14.0) Gecko/20120713 Thunderbird/14.0 In-Reply-To: <8bfbf709-18ac-43cd-b037-ce47adde96c2@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Date: 2012-08-27T17:09:17+03:00 List-Id: On 12-08-27 13:46 , kalvin.news@gmail.com wrote: > Hi All, > > I am not sure whether this idea has been discussed before, but I am > writing this down anyway. > > Java is a very popular language along C/C++. Ada has fine qualities > for writing robust code, that Java and c/C++ languages are missing. > It seems that Ada and other Pascal family of languages are not > popular among programmers because programmers consider Pascal as a > toy language suitable only for academic purposes, and Ada has also a > burden of being DoD language and being complex, slow etc. Ada may have a *reputation* of being complex and slow, but it isn't really. > The idea that came to my mind was that if Ada language is implemented > in syntax similar to Java and C++, this might attract more programmer > to adapt Ada. This would mean creating Jada (Java-Ada) an/or Cava > (C-Ada) languages, that look like Java/C++, but actually they are > Ada. So, no matter what language programmer would use Ada/Jada/Cava, > the result would be the same - robust code which has all Ada's good > features. > > Any comments on this? IMO, Ada syntax is just as close to C and Java as it needs to be, and also no less different than it should be. The syntax expresses the semantics. Ada semantics is different from C and Java and richer than both. You could perhaps use C/Java syntax to express the subset of Ada that corresponds to C/Java, but then you would be stuck and would have to invent new syntax to express the rest, or the programmers would have to switch to original Ada syntax to use the more powerful features of Ada. How do you define a new integer type in C syntax? How do you write an exception handler in C syntax? So, I think it is a bad idea. Besides, learning that similar things can be expressed in different ways is an essential part of understanding what programming is and what programming languages are. -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .