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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ab1d177a5a26577d X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!feeder.news-service.com!feeder.news-service.com!94.75.214.39.MISMATCH!aioe.org!.POSTED!not-for-mail From: "Nasser M. Abbasi" Newsgroups: comp.lang.ada Subject: Re: What's wrong with C++? Date: Sat, 19 Feb 2011 11:51:57 -0800 Organization: Aioe.org NNTP Server Message-ID: References: <00d1a6ec-be5f-43fe-9a0f-b01e055a5632@glegroupsg2000goo.googlegroups.com> Reply-To: nma@12000.org NNTP-Posting-Host: tUYQ4Ty9mMw9Pdc8TJRFQA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 X-Notice: Filtered by postfilter v. 0.8.2 Xref: g2news2.google.com comp.lang.ada:18429 Date: 2011-02-19T11:51:57-08:00 List-Id: On 2/19/2011 8:39 AM, Frank J. Lhota wrote: > On 2/19/2011 10:24 AM, Marco wrote: >> " >> Use "=" rather than ":=" for assignment. Virtually all of the most popular programming languages > use "=" for assignment, which is simpler and perfectly adequate. >> " >> Yuck - this was one of the C mistakes - "==" is so goofy - I do a lot of programming in > C and still think it was a mistake - Algol used := in 1960 so no excuses - saving key > strokes is a stupid reason to do it the FORTRAN way but now we are stuck with it > > The best symbol I've seen for assignment the left arrow used in APL and > early versions of Smalltalk. It's just as short as the C/C++ "=", it > quite nicely expresses what assignment does (moves the value on the > right into the variable on the left), and it would never be confused > with testing for equality. It's a pity that ASCII does not have a left > arrow character. > I do not like <- I like code that looks clean. Using <- all over the place, makes the code looks little more ugly than using := I think ":=" and "=" is a better choice than "=" and "==" myself, for readability purposes if nothing else. That is why I do not like Fortran choice of a comment line, which is "!" A very ugly symbol for a very common operation. Ada's "--" is much more pleasing to look at, more smooth indicator of a comment line and is not sore to the eye to look at it like ! is. I have no idea who selected ! for comment in fortran, I think it was bad choice, IMNSHO. --Nasser