Article View: comp.lang.c++
Article #755Re: does an expression in a logical statement need parenthesis for proper evaluation?
From: David Brown
Date: Fri, 06 Nov 2026 09:50
Date: Fri, 06 Nov 2026 09:50
27 lines
2712 bytes
2712 bytes
On 06/11/2026 09:17, Janis Papanagnou wrote: > On 2026-11-06 08:49, David Brown wrote: >> [...] >> >> There is a proportion of programmers who think it is somehow blasphemy >> to use more parentheses in an expression than strictly necessary. [...] > > "blasphemy", wow! - The exaggerations (despite being here, allegedly, > softened by the word "somehow") seem to have become in vogue, lately. > (Formerly I saw such argumentation paths prevalently in one specific > poster's posts only. Communication style seems to be infectious. :-) I thought the term "blasphemy" was so obviously an exaggeration that it could not be taken realistically. I intended to point out that there are extreme views in both directions regarding additional parentheses that do not change the meaning of expressions in the C language. > > Most (all?) professionals seem to prefer clearness as you do. Whatever > it needs to obtain that; less parentheses or additional parentheses - > depending on the expressions' complexity and context! - Largely still > subjective anyway, but less of religious intensity, I'd say. > Some people do treat these things with a surprising intensity. But it is more common to pretend and tongue-in-check exaggerate their importance.
Technical Details
Message-ID:
<11ck7s8$2d6d3$2@dont-email.me>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<11cj4a0$23796$1@dont-email.me> <11cj994$24m06$1@dont-email.me> <11ck0pr$2amtc$1@dont-email.me> <11ck2e4$23539$5@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: David Brown <david.brown@hesbynett.no> Newsgroups: comp.lang.c++,comp.lang.c Subject: Re: does an expression in a logical statement need parenthesis for proper evaluation? Date: Fri, 6 Nov 2026 10:50:00 +0100 Organization: A noiseless patient Spider Lines: 27 Message-ID: <11ck7s8$2d6d3$2@dont-email.me> References: <11cj4a0$23796$1@dont-email.me> <11cj994$24m06$1@dont-email.me> <11ck0pr$2amtc$1@dont-email.me> <11ck2e4$23539$5@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Fri, 06 Nov 2026 09:50:00 +0000 (UTC) Injection-Info: dont-email.me; logging-data="2529699"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/LWr0CrFPH5BuvrR9Kn1rE+FI0sUQ6uYQ="; posting-host="ab1057a5cce4cf262a2cabef0012b0c0" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:xBHUfIBSkjzg9VFoBUlmCC4Rv+k= sha256:lybej4TZ4Nc7Uut0SXcIgTf7R7uMSwkBA2j8xlOn3ZE= sha1:joiCn3DQOMGq9096nJ+gJVTZF+I= sha256:GVAQz+DhNWLpnPg547JOFGSLQrk8QqTFFGGSNp8Ty5A= In-Reply-To: <11ck2e4$23539$5@dont-email.me> Content-Language: en-GB