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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f5d71,d275ffeffdf83655 X-Google-Attributes: gidf5d71,public X-Google-Thread: 146b77,d275ffeffdf83655 X-Google-Attributes: gid146b77,public X-Google-Thread: 103376,d275ffeffdf83655 X-Google-Attributes: gid103376,public X-Google-Thread: 109fba,d275ffeffdf83655 X-Google-Attributes: gid109fba,public From: mike Subject: Re: Ada vs C++ vs Java Date: 1999/02/04 Message-ID: <79chc7$ko6@drn.newsguy.com>#1/1 X-Deja-AN: 440658530 References: <369C1F31.AE5AF7EF@concentric.net> <369DDDC3.FDE09999@sea.ericsson.se> <369e309a.32671759@news.demon.co.uk> <77ledn$eu7$1@remarQ.com> <77pnqc$cgi$1@newnews.global.net.uk> <8p64spq5lo5.fsf@Eng.Sun.COM> <77t3ld$nou$1@nnrp1.dejanews.com> <79ce4s$lfq$1@nnrp1.dejanews.com> Organization: Newsguy News Service [http://www.newsguy.com] Newsgroups: comp.lang.ada,comp.lang.c++,comp.vxworks,comp.lang.java Date: 1999-02-04T00:00:00+00:00 List-Id: In article <79ce4s$lfq$1@nnrp1.dejanews.com>, mll@xmission.com says... > > >HERE HERE, I've been writing C for 17 years, C++ for 7 and Ada for 7 and >would select Ada over the other 2 anytime (there may be SOME?? applications >which would be better written in C). C++, with the standard library is as reliable as Ada, with the addition that it is more terse. Look at this code below posted here recently by another poster. This code sorts a list of names inputed from stdin, look how clear, short, elegent, and easy to read it is. try to do the same in Ada (actually Ada does not even have a standard generic library that comes with the compiler as C++ does), and you might end up with pages of long code that is hard to read. I dont think Ada is more read'able. I think wordy languages for me are harder to read. too much words makes thing less hard to understand. That is why in mathematics people make up short symbols for longer expressions and constructs (for example, the integration sign has embedded in it many things, yet people now write the integration sign and they know what it means right away). Ada offcourse is a fine langauage. but I feel C++ is more expressive and concise. and in the practical world, it is easier to use than Ada. Even places like NASA now have moved from Ada to C++. I think this is a sign of C++ maturity now, and not a sign that Ada is a bad language. C++ now, after becoming a standard, and with the standard library is a very safe language. #include #include #include #include int main() { cout << "Please enter a list of words to be sorted: "; vector v; string buffer; while (cin>>buffer && buffer!="END") v.push_back(buffer); sort(v.begin(),v.end()); for (vector::iterator i = v.begin(); i!=v.end(); ++i) cout << *i << endl; return 0; } mike