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!news4.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!194.134.4.91.MISMATCH!news2.euro.net!newsfeed.freenet.ag!news.albasani.net!not-for-mail From: "Frank J. Lhota" Newsgroups: comp.lang.ada Subject: Re: What's wrong with C++? Date: Sat, 19 Feb 2011 11:39:09 -0500 Organization: albasani.net Message-ID: References: <00d1a6ec-be5f-43fe-9a0f-b01e055a5632@glegroupsg2000goo.googlegroups.com> Reply-To: FrankLho.NOSPAM@rcn.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net PrTeVES1ZfCsqwL8BC/q7k2TKScY15XSZtO4haX2Ctg7dPEb0mNNn/u8YUSHo4U6It3sp43C2Zt3lQGXprkHwCIiE7XqaFiTnZuWb1Pn8ymeHL7Va7bO8KCigjAzoYmj NNTP-Posting-Date: Sat, 19 Feb 2011 16:39:16 +0000 (UTC) In-Reply-To: <00d1a6ec-be5f-43fe-9a0f-b01e055a5632@glegroupsg2000goo.googlegroups.com> Cancel-Lock: sha1:B/gO6BPaACrsaaAbf543LQRH5oA= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Lightning/1.0b2 Thunderbird/3.1.7 Injection-Info: news.albasani.net; logging-data="tTlZY1oaZJ9jkZMk+fvFP5UK+hblHcsvU7MGvqbYIDaqdxlfmovsqTLGPuQsgRw3sAqzTjqCXIv5xrOuzpPR9sEpoql1YQ6MvGqM0fLtW0Y4G3yKJtycp2iwFC17WH3u"; mail-complaints-to="abuse@albasani.net" Xref: g2news2.google.com comp.lang.ada:18425 Date: 2011-02-19T11:39:09-05:00 List-Id: 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. -- "All things extant in this world, Gods of Heaven, gods of Earth, Let everything be as it should be; Thus shall it be!" - Magical chant from "Magical Shopping Arcade Abenobashi" "Drizzle, Drazzle, Drozzle, Drome, Time for this one to come home!" - Mr. Wizard from "Tooter Turtle"