Article View: comp.lang.c++
Article #889Re: does an expression in a logical statement need parenthesis for proper evaluation?
From: Richard Harnden
Date: Mon, 16 Nov 2026 19:16
Date: Mon, 16 Nov 2026 19:16
179 lines
9713 bytes
9713 bytes
On 16/11/2026 16:33, Ross Finlayson wrote: > On 11/16/2026 06:04 AM, David Brown wrote: >> On 16/11/2026 12:57, Ross Finlayson wrote: >>> On 11/16/2026 03:37 AM, David Brown wrote: >>>> On 16/11/2026 11:21, Ross Finlayson wrote: >>>>> >>>>> One way to read what your saying is "algebraizations" and >>>>> "arithmetizations", that's the act of interpreting models of >>>>> objects their matters of relation according to the matters of >>>>> relation of algebras and arithmetic. >>>>> >>>> No, that is not a way to read what I wrote. I wrote in English. >>>> >>>> Please find some way to write comprehensibly, without the waffling and >>>> rambling, and focusing on the point you are trying to make. >>>> >>>> Maybe you could try this for a plan. Before hitting "send" on a post, >>>> give the post to your favourite AI slopbot and ask it to generate a >>>> single paragraph summary. If that summary does not match what you >>>> wanted to say, you know you need to express your post differently. And >>>> if it /does/ match what you want to say, just post that summary so that >>>> other people don't need to wade through your original post. >>>> >>> >>> I dispute your estimation of my command of English. >>> >>> Wherever you got the impression that what I write >>> isn't perfectly grammatical, if long-winded and >>> for some a bit the too run-on the style, forget it. >>> >>> Of course above where I wrote "your" for "you're", >>> that's intolerable. >> >> >> Your grammar is imperfect, but not nearly bad enough to be an issue. >> Real problems include your regular use of words and phrases in a way >> that simply does not match their meaning. Run-on sentences are bad when >> they are too frequent, but made much worse by your overuse of "filler" >> words and phrases. Much of what you write would be more appropriate for >> a politician giving a filibuster speech. >> >> The root problem, I think, is that you have no focus in your writing. >> There is an open conduct between your thoughts and the words you type. >> Your thoughts wander, and - like everyone else - /you/ understand what >> you are thinking about. But other people do not live in your head. If >> you want people to understand what you are thinking about, you have to >> write in a way that other people can understand it - not just throw your >> thoughts at a page randomly. >> >> I believe you have things worth saying. That's why I am trying to >> suggest how you can improve your communication skills. Many others just >> write your posts off as "gobbledegook" or ignore them entirely. (The >> number of people that have given such feedback should be an indication >> that the problem here is the writer, not the readers.) >> >> This will, I think, be the last post I make directly to you (at least >> for a while) - unless you specifically ask for something. If you >> understand what I am trying to say, and appreciate that you have a >> serious problem communicating, then you can do something about it. If >> you don't think that is the case, then you will continue to write posts >> that are mostly ignored because they are simply too much effort to read. >> > > > Hm. Why, then, thank you good sir, such constructive criticism is > estimated a fair and forthright or the conscientious opinion. > > That said, I'll yet aver that my command of the concepts is > very strong, and it's toward, for example, "Grice", "Grice's maxims", > of communication, or for example typical accounts of, "effective > communication", vis-a-vis ethos and pathos and kairos here the _logos_, > and not mambly-pambly sorts manager-speak, nor "control freaks", > I'll aver that the more you know the better it goes. > > > Thanks for writing. > > If I may, I'd then ask "are there any questions or perceived > paradoxes or estimated particulars of incorrectness that it > may help to clarify?" > > > Some people prefer questions or the pointed, others a sort > of tendered reserve, implying invitation to remarks, then > as to whether, if I suggest that I _would_ ask, is that asking? > > > That said, then in an obligatory manner about logical statement > and parenthesis, has that precedence is most commonly C and C++'s > vis-a-vis, for example Java's _few_ differences in precedence > of priority of evaluation of operators their expressions in expressions, > and never hurts, except for readability when > it's obvious both the intent and the meaning. > > [There's really no reason to read this. I'm sorry ...] Me: How do I do list comprehensions in C? ChatGPT: [reasonable answer] Me: Thanks, but I want the question to be far more verbose. Maybe with more keywords (even if they're not relevant). Basically I want lots of waffle - even if it makes me sound like an idiot. ChatGTP: Ah, I see! You don't just want to ask how to implement Python-style list comprehensions in C. You want to wrap the question in an impressive amount of unnecessarily complicated technical terminology, preferably making a relatively straightforward programming problem sound like a major software architecture challenge. I can certainly help with that. 😂 Here's a suitably over-engineered version: I'm interested in exploring the possibility of implementing a mechanism within the C programming language that provides functionality conceptually analogous to Python's list comprehension syntax. More specifically, I'm looking at whether it's possible to introduce a declarative approach to collection construction and transformation, allowing the generation of derived data structures through the application of expressions, conditional predicates, iteration strategies and potentially nested evaluation constructs. Ideally, I'd like to investigate whether this could be achieved using some combination of preprocessor macros, generic programming techniques, function pointers, callback mechanisms, higher-order abstractions and possibly C11 language features. I'm particularly interested in understanding how such an implementation might facilitate operations equivalent to mapping, filtering, projection, selection and aggregation, while minimising unnecessary boilerplate and maintaining reasonable levels of type safety, memory management discipline and runtime efficiency. It would also be interesting to consider whether a lightweight abstraction layer could provide a more expressive, functional-programming-inspired interface without fundamentally compromising the procedural nature, portability or performance characteristics of conventional C. Are there any established design patterns, implementation strategies or library-level approaches that would lend themselves to this kind of functionality? I'd also be interested in any potential limitations imposed by the language's lack of native closure support, dynamic typing and built-in collection abstractions. And if you really want to go overboard, here's a suggested opening sentence: "I am seeking to investigate the feasibility of introducing a Python-inspired, declarative, functional-style collection transformation paradigm into an otherwise predominantly imperative, statically typed, low-level systems programming environment." There. You've turned "How do I do list comprehensions in C?" into something that sounds like a six-month research project with a steering committee. 😁 Me: Excellent, thank you ChatGPT: You're very welcome! 😁 Always happy to turn a perfectly sensible programming question into an unnecessarily complicated technical specification. It's practically an art form. 😂 [Sorry again. I shall now crawl back under my rock.]
Technical Details
Message-ID:
<11dfkpo$3r3q3$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!news-lax.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> <11cj8ch$24f93$1@dont-email.me> <11cj9he$24mi0$1@dont-email.me> <11d54u2$863c$1@dont-email.me> <11d5eg2$bfhu$1@dont-email.me> <11d6if2$lqnd$1@dont-email.me> <11d7a99$th7r$1@dont-email.me> <11d7f1t$1839o$1@dont-email.me> <11d82gp$1f70n$1@dont-email.me> <11dc7da$2nu91$1@dont-email.me> <pimdnUKCD4LIRGf3nZ2dnZfqnPWdnZ2d@giganews.com> <11depuh$3gu10$1@dont-email.me> <gLmdnYGfb6w4cmf3nZ2dnZfqn_GdnZ2d@giganews.com> <11df2i3$3k156$1@dont-email.me> <2eacnY2oHImorWb3nZ2dnZfqnPudnZ2d@giganews.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Richard Harnden <richard.nospam@gmail.invalid> Newsgroups: comp.lang.c++,comp.lang.c Subject: Re: does an expression in a logical statement need parenthesis for proper evaluation? Date: Mon, 16 Nov 2026 19:16:07 +0000 Organization: A noiseless patient Spider Lines: 179 Message-ID: <11dfkpo$3r3q3$1@dont-email.me> References: <11cj4a0$23796$1@dont-email.me> <11cj8ch$24f93$1@dont-email.me> <11cj9he$24mi0$1@dont-email.me> <11d54u2$863c$1@dont-email.me> <11d5eg2$bfhu$1@dont-email.me> <11d6if2$lqnd$1@dont-email.me> <11d7a99$th7r$1@dont-email.me> <11d7f1t$1839o$1@dont-email.me> <11d82gp$1f70n$1@dont-email.me> <11dc7da$2nu91$1@dont-email.me> <pimdnUKCD4LIRGf3nZ2dnZfqnPWdnZ2d@giganews.com> <11depuh$3gu10$1@dont-email.me> <gLmdnYGfb6w4cmf3nZ2dnZfqn_GdnZ2d@giganews.com> <11df2i3$3k156$1@dont-email.me> <2eacnY2oHImorWb3nZ2dnZfqnPudnZ2d@giganews.com> Reply-To: nospam.harnden@invalid.com MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Mon, 16 Nov 2026 19:16:09 +0000 (UTC) Injection-Info: dont-email.me; logging-data="4034371"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18PG4hPhBep89ae3Dr6jLMctia7nxqCBDw="; posting-host="57fa2c379a036d55a4219c218faf00a5" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:3WBKHX/Fcyr8EqnE7jhc7gU/+eo= sha256:9msMAd96T90Oa3pYXI950KvXjHQx5VIsv+11TU9FpMs= sha1:UHqZ6WtTQUt0gFsYAtCx9yI2gEY= sha256:AEJBbllhlnZ7DfV+SayfnVw3MiWQbJLg7trYCPDLvCE= In-Reply-To: <2eacnY2oHImorWb3nZ2dnZfqnPudnZ2d@giganews.com> Content-Language: en-GB