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 01:22:35 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!213.56.195.71!fr.usenet-edu.net!usenet-edu.net!proxad.net!proxad.net!newspeer1-gui.server.ntli.net!ntli.net!news11-gui.server.ntli.net.POSTED!not-for-mail From: "chris.danx" Newsgroups: comp.lang.ada References: <3d0ce154_5@news.bluewin.ch> 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: Date: Mon, 17 Jun 2002 09:22:09 +0100 NNTP-Posting-Host: 80.5.140.234 X-Complaints-To: abuse@ntlworld.com X-Trace: news11-gui.server.ntli.net 1024302153 80.5.140.234 (Mon, 17 Jun 2002 09:22:33 BST) NNTP-Posting-Date: Mon, 17 Jun 2002 09:22:33 BST Organization: ntl Cablemodem News Service Xref: archiver1.google.com comp.lang.ada:26127 Date: 2002-06-17T09:22:09+01:00 List-Id: "Russ" <18k11tm001@sneakemail.com> wrote in message news:bebbba07.0206162120.3acf4278@posting.google.com... > Vinzent Hoefler wrote in message news:<3d0ce154_5@news.bluewin.ch>... > > 18k11tm001@sneakemail.com (Russ) wrote: > > > > >Yes, it IS still essentially Ada, because you can still use standard > > >Ada compilers. A simple pre-processor could convert the cleaner > > >dialect to standard Ada 95, and ANYONE WHO WANTS TO CONTINUE TO USE > > >STANDARD ADA 95 COULD CONTINUE TO DO SO. > > > > Mmh. How do you convert a "/=" construct then? > > x /= y -- new syntax > x := x / y; -- old syntax x not equal to y = x := x / y; How long have you been programming in Ada? The '/=' construct should be known to you if you've been programming for any length of time. > > And your "anyone who wants..." is no real argument. You then could > > write a C++ to Ada-Preprocessor to get the same effect. We can going > > on using Ada and the rest of the world can do their C++. Or do the > > preprocessor the other way around, it might be easier. > > Wrong. Converting from C++ to Ada would be infinitely more complicated > than going from Ada-F to Ada. > > > >I really don't understand the objection to my proposal. Ada advocates > > >keep telling me they like Ada's syntax and it doesn't need to be > > >changed. > > > > Yup. More or less this is the case. IMO the syntax is well chosen, > > perhaps not perfect, but very good and clear. > > Let me repeat: YOU'S STILL BE ABLE TO USE IT EVEN IF MY PROPOSAL WAS > ADOPTED. How would you tell equals from assignment equals in your new mode? I mean if you're allowed both they'd need to be mutually exclusive otherwise they'd confuse the reader and maybe even the compiler. > > Personally I like ":=" much more than "=". Although in Ada there would > > be no possibility to do "if (a = b)" vs. "if (a == b)" like in C, I > > like the slightly mathematically approach of saying "this gives" > > instead of "this is equal" for assignments definitely more. > > I heard that ":=" was originally chosen by some early language > designer (can't remember who) who actually wanted to use "<=", but his > ancient ancient keyboard didn't have "<". You've fooled yourself into > thinking it has some deep meaning. Einstein said, "Everything should > be made as simple as possible, but not simpler." So Einstein agrees > with me. Vincent isn't saying it's got a deeper meaning, he's saying he prefers to use a mathematical symbol the way it's supposed to be used (and is used) and have a separate symbol for assignment which is entirely different from equality (equality is either true or false, assignment is neither). (Personally I agree with Jeff '<-' is a much nicer symbol for assignment, it looks like 'take the right and put it into the left' and it's quite natural). Also Einstien wouldn't agree with you, you'd still have two symbols (one for assignment and one for equality), instead would throw his hands up in disgust at the change in meaning of a well defined mathematical symbol. btw I don't dislike c symbols, I just dislike ppl who think Ada should look like C to get a bit of recognition. It's just plain silly. The language is the way it is. The best way to promote Ada (if that's what you want to do) is to write software in it, not mess with it's syntax. Chris