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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f51e93dacd9c7fca X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-17 18:56:58 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!wn1feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!sccrnsc01.POSTED!not-for-mail From: "SteveD" Newsgroups: comp.lang.ada References: Subject: Re: status of Ada STL? X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: NNTP-Posting-Host: 12.225.227.101 X-Complaints-To: abuse@attbi.com X-Trace: sccrnsc01 1024365417 12.225.227.101 (Tue, 18 Jun 2002 01:56:57 GMT) NNTP-Posting-Date: Tue, 18 Jun 2002 01:56:57 GMT Organization: AT&T Broadband Date: Tue, 18 Jun 2002 01:56:57 GMT Xref: archiver1.google.com comp.lang.ada:26194 Date: 2002-06-18T01:56:57+00:00 List-Id: "Russ" <18k11tm001@sneakemail.com> wrote in message news:bebbba07.0206151051.1c25cf1e@posting.google.com... [snip] > > I also happen to think that Ada's awkward syntax is part of the > problem. My proposal for a cleaner Ada syntax option can be found at > http://RussP.org/Ada.htm > I also think there are awkward areas of syntax in Ada, but disagree with ALL of your examples. I think it is naive to think that such minor syntax changes would have any positive impact on the use of Ada. If the syntax is introduced as an alternate, the result is what I call YABL (yet another bastard language). The things I find awkward about Ada syntax... If you look at blocks of code you have: if condition then ... end if; while condition loop ... end loop; If you look at type definitions you have: type mytype is record ... end record; Each of these cases clearly define the scope of a block or type definition. Now if I move on to tagged types I have: package mydemo is type mytype is abstract tagged null record; procedure MyProc1( value : mytype ); type anothertype is new mytype with null record; procedure MyProc2( value : mytype ); end mydemo; When I compile this with GNAT 3.14p I get the following: mydemo.ads:7:03: warning: no primitive operations for "mytype" after this mydemo.ads:9:13: this primitive operation is declared too late After working with Pascal and C, I was pleased to learn Ada and appreciate that if, while, case, and for constructs all have an explicit end construct. I am disappointed that primitive operations, which are really part of a tagged type construct do not have an explicit end of primititive operations construct. I would much prefer: type mytype is abstract tagged record null; end record methods procedure MyProc1( value : mytype ); end methods; Or for that matter any notation that explicitly marks the end of primitive operations on a tagged type declaration. This kind of ambiguity is what other languages are good for. Like C++... hey wait a minute ;-) This is one of my few peeves with Ada. But I can't say that changing this would have any significant impact on market penetration. SteveD