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-Thread: 103376,703c4f68db81387d X-Google-Thread: 109fba,703c4f68db81387d X-Google-Thread: 115aec,703c4f68db81387d X-Google-Thread: f43e6,703c4f68db81387d X-Google-Attributes: gid103376,gid109fba,gid115aec,gidf43e6,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!g14g2000cwa.googlegroups.com!not-for-mail From: "Jerry Coffin" Newsgroups: comp.lang.ada,comp.lang.c++,comp.realtime,comp.software-eng Subject: Re: Teaching new tricks to an old dog (C++ -->Ada) Date: 9 Mar 2005 06:32:25 -0800 Organization: http://groups.google.com Message-ID: <1110378745.155345.221890@g14g2000cwa.googlegroups.com> References: <4229bad9$0$1019$afc38c87@news.optusnet.com.au> <1110032222.447846.167060@g14g2000cwa.googlegroups.com> <871xau9nlh.fsf@insalien.org> <3SjWd.103128$Vf.3969241@news000.worldonline.dk> <87r7iu85lf.fsf@insalien.org> <87is4598pm.fsf@insalien.org> <1110054476.533590@athnrd02> <1110059861.560004@athnrd02> <87wtsl7jts.fsf@insalien.org> <1110264816.858853.54020@l41g2000cwc.googlegroups.com> <1110336185.044049.21920@l41g2000cwc.googlegroups.com> NNTP-Posting-Host: 70.33.25.135 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1110378748 20998 127.0.0.1 (9 Mar 2005 14:32:28 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 9 Mar 2005 14:32:28 +0000 (UTC) User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: g14g2000cwa.googlegroups.com; posting-host=70.33.25.135; posting-account=mZiOqwwAAAC5YZsJDHJLeReHGPXV5ENp Xref: g2news1.google.com comp.lang.ada:8931 comp.lang.c++:44765 comp.realtime:1123 comp.software-eng:4682 Date: 2005-03-09T06:32:25-08:00 List-Id: Peter Hermann wrote: > In comp.lang.ada Jerry Coffin wrote: > > rarely do things like parenthesizing a+(b*c). Even those who argue most > > strongly for explicitness generally agree that this would be silly, at > > least in "obvious" cases like the one above. > > No, it is not silly. > It shows professionality, even when not in doubt. > There is no compelling reason to learn those many priority rules > for Ada expressions to achieve secondary bulk knowledge. Gosh, that just doesn't seem very professional to me -- after all, it's missing the comments to remind the reader that '+' does addition, '*' does multiplication, parentheses can be used to override the default precedence, 'a', 'b' and 'c' are variables (and what their types are) and so on. To be both professional and efficient, how about if we just paste in the entire text of the LRM before each statement? That would leave nobody room for _any_ doubt about what the code means. Oh...well, you're probably right: to go with, we'd better paste in the entire text of a real dictionary, and (just in case) a complete set of books teaching how to read English. The people you're obviously targeting as reading the code undoubtedly need that -- after all, every word in "Language Reference Manual" has three whole syllables! -- Later, Jerry. The universe is a figment of its own imagination.