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: 103376,7b5615402713dcbb X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.180.82.226 with SMTP id l2mr2304156wiy.1.1346148017312; Tue, 28 Aug 2012 03:00:17 -0700 (PDT) Path: q11ni347353033wiw.1!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: Tue, 28 Aug 2012 13:00:15 +0300 Organization: Tidorum Ltd Message-ID: References: <8bfbf709-18ac-43cd-b037-ce47adde96c2@googlegroups.com> Mime-Version: 1.0 X-Trace: individual.net KFEsEnNm4a3h9mk4Ste3fwiUY+3Ogs59xGyn23UHNP35/zMT6kcsruEPCjTb3TGs5+ Cancel-Lock: sha1:piJpXJXWhcVbCtQqkBRK4ksElEY= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:14.0) Gecko/20120713 Thunderbird/14.0 In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Date: 2012-08-28T13:00:15+03:00 List-Id: On 12-08-28 11:28 , kalvin.news@gmail.com wrote: > tiistai, 28. elokuuta 2012 9.57.40 UTC+3 Shark8 kirjoitti: >> On Monday, August 27, 2012 11:35:28 PM UTC-6, kalvi...@gmail.com >> wrote: >> >>> My suggestion here is to introduce Ada's good virtues for C and >>> Java programmers in syntax that is familiar to most of the >>> software engineers. >> >> You aren't listening to the replies you're getting; it's a bad idea >> to try to gloss over (extend) C/Java syntax. Randy's reply is a >> good one in explaining why syntax itself matters. > > I hear you, and I have read replies - Randy's too, and I could not > agree more with the replies. If you agree with the replies, none of which support your suggestion, why do you persist with the idea? > But if the programmers *want* to use or are *insiting in using* > languages with resemble Java/C, Any programmer who is that pig-headed about syntax is probably too pig-headed to learn the new concepts that Ada provides, too. Good riddance. Good programmers (well, people whom I consider good programmers) *like* to learn new languages, with new syntax and all, as long as the new things expand their programming abilities. I don't think Ada is held back by its non-C/Java syntax. It is held back by inertia, poor visibility, lack of compilers for many embedded systems, and by not being aimed at web-based applications. > As many responders have pointed out, that it might not be possible to > express Ada completely in C/Java-like syntax. Maybe we could come up > with something, that is half-way between the languages. Someone in > the thread suggested expressing a subset of Ada in C/Java-like > syntax. That might be a good and reasonable solution. I spoke of such a subset, but only to reject it, because it would be a dead end. > If the programmer wants to get full Ada power, they should start > using Ada instead. But they would already be half-way there: No, they would be half-way *in the wrong direction*. > They > would be accustomed with strict type checking, packages etc. and > better software construction. The Ada features for these things are packages, the definition of new types, type derivation, generics, and tagged types. There is no syntax for such things in C, so they would not be in the "C subset". If you want to help C programmers, IMO the best way forward is to improve C. Many C programmers would like C to have a better concept of modules, perhaps similar to Ada packages, and the same goes for many other weaknesses of C. But they also need to have compatibility, which is possible by adding new abilities to C, but is not possible by switching to Ada with a C-look-alike syntax. It seems to me that C++ is already moving in this direction, for example by making it possible to prevent implicit use of conversion functions. > Btw, the ideas on implementing a preprocessor and/or JVM compiler are > excellent. Ada compilers that target the JVM exist. They use the standard Ada syntax. The target is irrelevant to your proposal. Way back, there were Ada preprocessors (or perhaps even compilers?) to let one write Ada programs with keywords in French, and perhaps other languages. I don't think any remain. For a preprocessor from C-like Ada to Ada, the basic problem remains: since Ada has many features that C lacks, you would have to invent new C-like syntax for these features, and then they would not be familiar to C programmers. -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .