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,54889de51045a215 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-19 23:20:21 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.mathworks.com!news-out.cwix.com!newsfeed.cwix.com!news1.optus.net.au!optus!spool01.syd.optusnet.com.au!spool.optusnet.com.au!not-for-mail Date: Mon, 20 Oct 2003 16:19:17 +1000 From: Ross Higson User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.5a) Gecko/20030718 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: += in ada References: <3F7316F7.219F@mail.ru> <17cd177c.0310010606.52da88f3@posting.google.com> <3F8BC74F.2CFBFF37@0.0> <1066312000.671303@master.nyc.kbcfp.com> <1066322883.139702@master.nyc.kbcfp.com> <3F8F372D.9040801@comcast.net> <3F8F4559.50306@noplace.com> <3F929FC8.9070901@noplace.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <3f937e27$0$28121$afc38c87@news.optusnet.com.au> NNTP-Posting-Host: 210.49.81.143 X-Trace: 1066630695 28121 210.49.81.143 Xref: archiver1.google.com comp.lang.ada:1178 Date: 2003-10-20T16:19:17+10:00 List-Id: > > Take a look some time at comp.lang.c, comp.lang.c++, comp.lang.java.*, > comp.lang.perl, and comp.lang.python. You might just find that each of > them gets more posts in a day than comp.lang.ada gets in a month. Is > that *because* they each have "+="? I don't know, but you cannot deny > the correlation between "+=" and popularity. (Of course, they all use > "=" rather than ":=" for assignment, which may also be a huge factor, > but that's another story.) So presumably adding a C/C++ type assignment operator to Ada is going to be your next great crusade ?. Wonderful - then all Ada programmers could enjoy one of my favorite C/C++ bugs: #include main () { int a = 0; if (a = 0) printf ("Russ has a point\n"); else printf ("Russ is an idiot\n"); } I've actually seen texts that say in C++ you should always write things like "if (5 == b)" instead of "if (b == 5)" just in case you were to accidentally write "if (b = 5)". Now *there's* a language that protects the user from easy-to-make but hard-to-spot mistakes, and encourages readability into the bargain !. > > I've already wasted more than enough time on this little endeavor, so > I may just take your suggestion. (grateful sigh from the entire newgroup readership !)