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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,54889de51045a215 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-09 12:43:04 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!adsl-213-200-246-247.cybernet.CH!not-for-mail From: Vinzent 'Gadget' Hoefler Newsgroups: comp.lang.ada Subject: Re: += in ada Date: Thu, 09 Oct 2003 21:42:01 +0200 Organization: JeLlyFish software Message-ID: References: <49cbf610.0310070205.2937e71a@posting.google.com> Reply-To: v.hoefler@acm.org NNTP-Posting-Host: adsl-213-200-246-247.cybernet.ch (213.200.246.247) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de 1065728583 19364401 213.200.246.247 (16 [175126]) X-Newsreader: Forte Agent 1.8/32.548 Xref: archiver1.google.com comp.lang.ada:557 Date: 2003-10-09T21:42:01+02:00 List-Id: Russ wrote: >Preben Randhol wrote in = message = news:... >> On 2003-10-07, Russ <18k11tm001@sneakemail.com> wrote: >> > Repeat after me: Augmented assignment is available and WIDELY USED = in >> > C, C++, Java, Perl, and Python, perhaps the 5 most popular >> > general-purpose programming languages ever designed. Is it = *possible* >> > that 98% of the programmers out there might know *something* that = Ada >> > programmers don't? >>=20 >> So what? A billion Chinese speak Chinese... > >Does 98% of the world population speak Chinese? Well, *much* less than 98% of the world population are programmers, I'd say. :) >course not. Only C and C++ have it. My point was that all five of >those languages -- the most popular general-purpose languages in >current use -- *all* have augmented assignment. Inhouse we have a term for that: "Historical reason". ;) That means "dirty, little thing that's just there and nobody wants to touch it, because if you'd do, it'll surely break some time". >And I get tired of people who assume that I want augmented assignment >operators in Ada only because they are in C/C++. Well, if at all, I would like to have the idem approach like it was discussed long before here in c.l.a.: |A_Complex_Left_Hand_Side :=3D + 1; instead of (your) proposed |A_Complex_Left_Hand_Side :+=3D 1; IMO, the latter *is* too confusing, no matter how the operator would exactly look like. It would give you all you want and would even include the plus of being more versatile, because one could use it more than once in a line. A perhaps second argument is: it wouldn't clutter up the code too much, because probably no one would try to write |i :=3D + Another_Variable; instead of |i :=3D i + Another_Variable; in this simple case, but surely a lot of people would use |i :+=3D Another_Variable; because it might be easier/faster to write. So this could be sort of self-regulating. :) Vinzent.