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,577df5d4a0e88785 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-12-12 15:06:08 PST Path: supernews.google.com!sn-xit-02!supernews.com!newsfeed.mesh.ad.jp!feed2.onemain.com!feed1.onemain.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail Message-ID: <3A36AF4B.6B81DF78@acm.org> From: Jeff Carter X-Mailer: Mozilla 4.7 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: constant string array References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Tue, 12 Dec 2000 23:05:55 GMT NNTP-Posting-Host: 199.174.148.104 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 976662355 199.174.148.104 (Tue, 12 Dec 2000 15:05:55 PST) NNTP-Posting-Date: Tue, 12 Dec 2000 15:05:55 PST Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: supernews.google.com comp.lang.ada:3021 Date: 2000-12-12T23:05:55+00:00 List-Id: "Beard, Frank" wrote: > > Such people frequently do other irritating things, > > like putting unnecessary parentheses around the > > condition of an if > > To me this is a non-issue. Use them, don't use > them. Who cares? I don't care so long as they don't > decrease readability. But, definitely use them > if they increase readability, as in making precedence > clearer, or dealing with compound statements containing > multiple "or else" and "and then". Or should I say > (or else) and (and then). :-) I put this in mostly because Robert Dewar, who thinks the "if" form is clearer, in another post objected to the unnecessary parentheses. I like parentheses whenever they make things clearer. Sometimes this includes unnecessary parentheses, as in -(2 ** 31) for those who don't remember the precedence rules. However, when they don't even do that, they make me pause to see why the writer thought parentheses are necessary. Since they aren't, the effect is to make the code more difficult for me to read. -- Jeff Carter "You brightly-colored, mealy-templed, cranberry-smelling, electric donkey-bottom biters." Monty Python & the Holy Grail