Article View: comp.lang.c
Article #1433Re: does an expression in a logical statement need parenthesis for proper evaluation?
From: James Kuyper
Date: Tue, 10 Nov 2026 15:45
Date: Tue, 10 Nov 2026 15:45
18 lines
2453 bytes
2453 bytes
On 2026-11-09 15:42, Janis Papanagnou wrote: > On 2026-11-09 12:00, James Kuyper wrote: ...>> I tend not to use unnecessary parentheses, and I know the grammar well >> enough to correctly identify them - but many people don't know the >> grammar that well, which might include the next person to maintain my >> code. There are reasonable arguments that I should use parentheses more >> than I actually do, for the benefit of such people. > > I'm "a bit" unsettled by the idea of a programmer who is unfamiliar > with the language in general or the grammar specifically! (I know > there's such folks writing programs.) I wouldn't write programs in > ways to satisfy such folks. I'd certainly write programs in ways to > keep the program maintainable focusing on the language specifics not > imagining that the piece of code might be handled by a Neanderthal. I've worked with a lot of entry-level programmers in my career. Some of them had Ph.Ds in science, but were novices to programming. That probably influenced my expectations.
Technical Details
Message-ID:
<11cve65$295f7$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-ams.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<11cj4a0$23796$1@dont-email.me> <11crsub$11ikc$1@dont-email.me> <11cs94q$15ptp$1@dont-email.me> <11ctb70$3svb5$4@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-ams.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: James Kuyper <jameskuyper@alumni.caltech.edu> Newsgroups: comp.lang.c++,comp.lang.c Subject: Re: does an expression in a logical statement need parenthesis for proper evaluation? Date: Tue, 10 Nov 2026 10:45:08 -0500 Organization: A noiseless patient Spider Lines: 18 Message-ID: <11cve65$295f7$1@dont-email.me> References: <11cj4a0$23796$1@dont-email.me> <11crsub$11ikc$1@dont-email.me> <11cs94q$15ptp$1@dont-email.me> <11ctb70$3svb5$4@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Date: Tue, 10 Nov 2026 15:45:10 +0000 (UTC) Injection-Info: dont-email.me; logging-data="2397671"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+wAd6z+mac8gbXARA+eWgLMyeezecfJK4="; posting-host="552eb1a0b853e73b76d30257800cf8bd" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:yS+lN77uazb+dcCqBMMrFw2+EAk= sha256:yFd66Oo/3QrzS/k/0wu7/043cWzXS7lvQOKawspdakY= sha1:cSBi+1DtwCQ8wg2FOJlGGk+GCjI= sha256:3CyI82ojbOqoynf5ipY16kuZmqtOWyw1UD9CXObUbsA= In-Reply-To: <11ctb70$3svb5$4@dont-email.me> Content-Language: en-US